discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Mesh/Polyhedron Test Script

N
NateTG
Thu, Feb 1, 2018 12:42 AM

Here's a first cut at some mesh inspection functions:

meshtest.scad http://forum.openscad.org/file/t2140/meshtest.scad

I'm curious whether other people think this is something to pursue further.
I'd also like suggestions about how to present the test reports more
clearly.

--
Sent from: http://forum.openscad.org/

Here's a first cut at some mesh inspection functions: meshtest.scad <http://forum.openscad.org/file/t2140/meshtest.scad> I'm curious whether other people think this is something to pursue further. I'd also like suggestions about how to present the test reports more clearly. -- Sent from: http://forum.openscad.org/
P
Parkinbot
Thu, Feb 1, 2018 1:40 PM

You can't query the mesh data of a design in OpenSCAD. The footprint of the
affine approach is too small (it has no Boolean operations) to produce
problematic meshes. I would be a great progress to get at least hands on the
mesh data of STL imports (or other input formats), but nope. So to be
honest, I don't see much sense in implementing a meshtester or meshrepairing
in OpenSCAD. OK you could use some STL2SCAD converter, but no way to do
something useful with OpenSCAD in that field.

Better use a full blown (procedural) programming language like C/C++/C#, VB,
Python, Matlab ..., which lets you read/write and parse ASCII and binary STL
files. Your code will be fast, stack size will be no problem, you can write
structured programs with abstract data types and you have direct element
write access ...

--
Sent from: http://forum.openscad.org/

You can't query the mesh data of a design in OpenSCAD. The footprint of the affine approach is too small (it has no Boolean operations) to produce problematic meshes. I would be a great progress to get at least hands on the mesh data of STL imports (or other input formats), but nope. So to be honest, I don't see much sense in implementing a meshtester or meshrepairing in OpenSCAD. OK you could use some STL2SCAD converter, but no way to do something useful with OpenSCAD in that field. Better use a full blown (procedural) programming language like C/C++/C#, VB, Python, Matlab ..., which lets you read/write and parse ASCII and binary STL files. Your code will be fast, stack size will be no problem, you can write structured programs with abstract data types and you have direct element write access ... -- Sent from: http://forum.openscad.org/
N
NateTG
Wed, Feb 14, 2018 3:09 AM

You can't query the mesh data of a design in OpenSCAD. The footprint of the

affine approach is too small (it has no Boolean operations) to produce
problematic meshes ...

Sure, but we do regularly see people who have issues with polyhedron() and
questionable data.

https://github.com/openscad/openscad/issues/2301

http://forum.openscad.org/Renders-fine-but-fails-validity-check-td23037.html

https://github.com/openscad/openscad/issues/2090

https://github.com/openscad/openscad/issues/1957

--
Sent from: http://forum.openscad.org/

> You can't query the mesh data of a design in OpenSCAD. The footprint of the affine approach is too small (it has no Boolean operations) to produce problematic meshes ... Sure, but we do regularly see people who have issues with polyhedron() and questionable data. https://github.com/openscad/openscad/issues/2301 http://forum.openscad.org/Renders-fine-but-fails-validity-check-td23037.html https://github.com/openscad/openscad/issues/2090 https://github.com/openscad/openscad/issues/1957 -- Sent from: http://forum.openscad.org/