Tessellation parameters based on CAD bounding box dimensions?
Hello,
We devised a recipe to tessellate CAD files that I wanted to test in InstaLOD Studio. This recipe was based on the measure of the diagonal of the CAD bounding box so we did not have to play manually with the Maximum Deviation and Maximum Edge Length parameters. For example, we set:
Maximum Deviation = BBox_diag/10,000
Maximum Edge Length = 5* BBox_diag/1,000
Maximum Angle = 15 deg (constant, doesn’t depend on the CAD)
Is there a way to define such a profile where some values would depend on the CAD bounding box dimensions?
Is there a way to define such a profile where some values would depend on the CAD bounding box dimensions?
-
Official comment
Hello Bruno,
We have already addressed this question in our email correspondence. To ensure that all necessary information is provided, I will paste the answer below.
Thanks,
Andreas
While it's possible to set up scene rules that define tessellation parameters based on the bounding box size, the computed bounding box dimensions cannot be used as a variable in the tessellation settings. What you could do instead is to set up tessellation parameters for predefined ranges of the bounding sphere radius. For example:
- If
Mesh.BoundingSphere.Radius < 1
, use Maximum Deviation of 1.0 and Maximum Edge Length 0.1 - If
Mesh.BoundingSphere.Radius >= 1 AND < 10
, use Maximum Deviation of 0.1 and Maximum Edge Length 1.0 - ...
However, it's worth mentioning that InstaLOD already automatically computes a maximum deviation value that is suited for the scene size. Furthermore, we typically recommend densely tessellating a mesh (maximum deviation 0.01 or less) and then using InstaLOD's optimizer to reduce the polygon count. The optimizer is sensitive to the scale of the objects and optimizes small objects more heavily than large objects.Comment actions - If
Please sign in to leave a comment.
Comments
1 comment