How to measure distance between Shapes, lengths of Edges and surface area in Web Toolkit
To measure the
length of an Edge, use
computeEdgeLength method of
ModelAlgo_CurveLength class. It will be computed from the mesh used for visualization.
To measure the perimeter, iterate over all Edges of the Wire to be measured and sum their lengths.
Related Articles
Web Toolkit
CAD Exchanger Web Toolkit is a set of JavaScript libraries to visualize, explore and analyze 3D CAD models. Unlike Autodesk Forge, Web Toolkit can be used to develop web applications running entirely on premise (i.e. inside a corporate network) ...
How to import and visualize 2D drawings in Web Toolkit
We have a ready-made Drawing Viewer Example that shows drawings: sheets, layers, elements in a browser. Its source code is available here on GitHub. It can be implemented into your solution. In order for the Web Toolkit to display the drawing, the ...
Is it possible to save edits applied in Web Toolkit?
Web Toolkit add-on provides functionalities for visualization, analysis and export of 3D data in web browsers. However unfortunately since it's mostly a visualization tool, it doesn't allow editing. A user will be able to manipulate parts of the ...
Measure
CAD Exchanger Lab has several options for measuring: angles between vertexes or surfaces; distances; radiuses; diameters. Click the Measure icon, Add measurement, pick the measurement type and measure the object or objects. Note: Measurement tool ...
Visualization Toolkit
The CAD Exchanger SDK visualization component enables creation of highly-interactive high-performance 3D CAD/CAE applications. The visualization component provides an efficient API to create scene graph from the SDK data objects (such as ...