6/18/2023 0 Comments Tessellation consultingThis is an example of renderings with different surface tolerances. You will see that the number of triangles changes. Then try zooming in and out and click Regen. For example, open any 3D solid and vectorize it in flat shaded mode (triangles are better seen in flat mode). You can see this effect in the OdaMfcApp sample application. And zooming out from the object makes the tessellation more rough. This means that the closer you zoom in to the 3D object, the better (more detailed, but with more triangles) the tessellation is calculated. The current implementation of the OdGsView class calculates the deviation for the current camera position based on the physical pixel size. The deviation must be provided by an inheritor of the OdGiCommonDraw class in a virtual function: virtual double deviation(įor tessellation, deviationType must be kOdGiMaxDevForFacet and pointOnCurve must contain a point on the rendering object if you have perspective mode turned on. Surface tolerance is one of its main input parameters. BrepRenderer is a library that performs B-Rep geometry data tessellation computation, caching and drawing to an OdGiCommonDraw object. The same is true for other operations based on vectorization, for example exports (STL, Collada) and conversions between different formats. rvt) with ODA SDKs requires providing surface tolerance information to BrepRenderer. The more precise the tolerance, the more triangles you get. Use the parameter for surface tolerance, which is the maximum distance between the source analytical surface and triangle mesh. Tessellation allows controlling the number of triangles used to represent 3D entities.
0 Comments
Leave a Reply. |