
Tue, 11/30/2021 - 01:58
Forums:
Hello, how to get dimensions visible?
TopoDS_Edge edge = TopoDS::Edge(shapes.at(0));
gp_Pln thePlane;
Handle(PrsDim_LengthDimension) lengthDimension = new PrsDim_LengthDimension(edge, thePlane);
lengthDimension->SetColor(Quantity_NOC_ANTIQUEWHITE3);
lengthDimension->SetDisplayUnits("units");
OccViewManager::instance()->myContext()->Display(lengthDimension, false);
no error but also nothing visible.
Thanks!
Tue, 11/30/2021 - 02:58
Never mind, got it going