logoalt Hacker News

bigfishrunningyesterday at 9:20 PM4 repliesview on HN

My whole CAD experience is with OpenSCAD, which apparently uses the same kernel; Honest question -- what is the alternative? I would assume the vast majority of 3D model processing relies on triangle meshes...


Replies

nynxyesterday at 9:26 PM

Breps. Nearly all commercial cad packages operate on boundary representations of objects.

show 2 replies
Brian_K_Whiteyesterday at 11:09 PM

Meshes are an output, not a source, and not a good internal representation.

Meshes are only a lossy approximation of the actual geometry, and the errors accumulate as features reference off of earlier features.

A simple example is a line tangent to an arc. The line will only be the correct distance from the center of the arc at one point (one angle) per segment.

In openscad you don't notice the problem because since it's code and you have variables and programming ways of expressing relationships, you would usually not try to derive one thing from another by geometry, instead both things would reference a common ancestor variable. But that's a technical implimentation detail that works around the problem by just not doing a thing that doesn't work. The problem is still there that a valid geometry constraint would produce invalid results.

nicr_22yesterday at 9:28 PM

OpenCASCADE?

https://dev.opencascade.org/

show 2 replies
autumn-antlersyesterday at 9:21 PM

libfive