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.