Knowing that there can, and are, problems with importing an STL file, is
there an online, or other, package out there that can be used to convert
an STL or GCODE file to a height map to be *surface() *into OpenSCAD?
On 4/3/2022 7:34 AM, Joe Weinpert wrote:
Knowing that there can, and are, problems with importing an STL file,
is there an online, or other, package out there that can be used to
convert an STL or GCODE file to a height map to
be *surface() *into OpenSCAD?
Probably not.
Remember that surface() is only a mapping of a 2D array - typically an
image. It can't represent a general 3D object.
And Gcode doesn't represent an object at all - it's a set of
instructions for controlling motors in a bunch of axes. Turning it into
something like an object requires simulating a 3D printer. (Assuming
that it's Gcode for a 3D printer.)
Your best bet is to find an STL repair tool.
On 4 Apr 2022, at 04:43, Jordan Brown openscad@jordan.maileater.net wrote:
On 4/3/2022 7:34 AM, Joe Weinpert wrote:
Knowing that there can, and are, problems with importing an STL file, is there an online, or other, package out there that can be used to convert an STL or GCODE file to a height map to be surface() into OpenSCAD?
Probably not.
Remember that surface() is only a mapping of a 2D array - typically an image. It can't represent a general 3D object.
And Gcode doesn't represent an object at all - it's a set of instructions for controlling motors in a bunch of axes. Turning it into something like an object requires simulating a 3D printer. (Assuming that it's Gcode for a 3D printer.)
Your best bet is to find an STL repair tool.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
The open scad surface () is a height map, so it will represent the
surface height from a flat base, so to speak, it will not map the
underside (although you could turn the object over, map that surface,
and join the two together in openscad). It is relatively easy to convert
g-code to a point cloud, and then you would need to estimate the actual
height at the grid positions for the surface. Without doing more
calculations to generate the profile of the tool, if g-code for
machining, then the result would be very approximate to the original
stl. For an fdm 3d printer, with a smaller 'tool/nozzle', it may be good
enough, provided the surface file had enough rows and columns. Ball park
figures, for a volume approximating to a 20mm cube and o.4mm nozzle,
you'd need a surface file about 50 rows by 50 columns and get an error
of about 0.4mm, (or about 2%)
On 03/04/2022 15:34, Joe Weinpert wrote:
Knowing that there can, and are, problems with importing an STL file,
is there an online, or other, package out there that can be used to
convert an STL or GCODE file to a height map to be *surface()
*into OpenSCAD?
OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org