On 2020-04-22 13:22, TLC123 wrote:
from feature
mypolygon = import( "TA5[1-layer].dxf" );
mypolyhedron= import( "TA5[1-model].stl" );
This is an old thread from 2018 where bending led to discussing
remeshing as used in
https://gist.github.com/arnholm/fadb3e6c7e38983643377569ca94d0b9
Since that time, the software I used for remeshing a 3d mesh was made
open source. The feature is in "polyfix" (part of AngelCAD) where there
is a -remesh=length command line option. It will split the mesh
triangles until all edges are smaller or equal to the specified length
and write the result to a new file.
With an import feature as described above, you can then do various
"bends" or other shape transformations. But this requires read/write
access to the vertices of the imported polyhedra.
Carsten Arnholm
That's good news, Carsten. What is the name of this newly open source remeshing code?
On Wed, Apr 22, 2020, at 7:51 AM, arnholm@arnholm.org wrote:
On 2020-04-22 13:22, TLC123 wrote:
from feature
mypolygon = import( "TA5[1-layer].dxf" );
mypolyhedron= import( "TA5[1-model].stl" );
This is an old thread from 2018 where bending led to discussing
remeshing as used in
https://gist.github.com/arnholm/fadb3e6c7e38983643377569ca94d0b9
Since that time, the software I used for remeshing a 3d mesh was made
open source. The feature is in "polyfix" (part of AngelCAD) where there
is a -remesh=length command line option. It will split the mesh
triangles until all edges are smaller or equal to the specified length
and write the result to a new file.
With an import feature as described above, you can then do various
"bends" or other shape transformations. But this requires read/write
access to the vertices of the imported polyhedra.
Carsten Arnholm
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 2020-04-22 15:01, Doug Moen wrote:
That's good news, Carsten. What is the name of this newly open source
remeshing code?
I thought I explained it, it a console application called "polyfix",
part of my AngelCAD package. It is used for converting between mesh file
formats, file repair ("healing") and remeshing.
Usage: polyfix [options] <input_filename>
-verbose Verbose messages
-maxiter=<str> [heal] Max iterations (def=10)
-dtol=<str> [heal] Distance tolerance (def=1.0E-2)
-atol=<str> [heal] Area tolerance (def=1.0E-6)
-lumps [heal] Split into lumps (not supported for stl
output)
-nflip [heal] Flip faces with inward normals (experimental)
-remesh=<str> [remesh] Heal & remesh surfaces to given edge length
-overwrite [output] allow file overwrite, including input file.
-out=<str> [output] output filename/format (.obj, .off, .amf,
.stl, .astl)
-zip [output] save output also to compressed zip file
The -remesh option takes a length value that reduces the edge lengths in
the model by splitting triangles.
https://github.com/arnholm/angelcad/releases
Carsten Arnholm