How to measure distance between Shapes, lengths of Edges and surface area in Web Toolkit

How to measure distance between Shapes, lengths of Edges and surface area in Web Toolkit

To measure the minimal distance between two selected Shapes, use createDistanceFromShapes method of ModelPrs_MeasurementFactory class.

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.

To measure the surface area of a Shape, use computeShapeSurfaceArea method of ModelAlgo_ValidationProperty class.