mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-09 22:28:13 +08:00
0028232: Visualization, StdPrs_ShadedShape - create WireFrame presentation for sole Vertex / Edge / Wire
This commit is contained in:
@@ -60,21 +60,19 @@ namespace
|
||||
const TopoDS_Shape& theShape,
|
||||
const Handle (Prs3d_Drawer)& theDrawer)
|
||||
{
|
||||
Standard_Boolean aDrawAllVerticesFlag = (theDrawer->VertexDrawMode() == Prs3d_VDM_All);
|
||||
|
||||
if (!aDrawAllVerticesFlag && theShape.ShapeType() != TopAbs_COMPOUND)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TopExp_Explorer aShapeIter (theShape, TopAbs_FACE);
|
||||
if (!aShapeIter.More())
|
||||
{
|
||||
// compound contains no shaded elements at all
|
||||
StdPrs_WFShape::Add (thePrs, theShape, theDrawer);
|
||||
return;
|
||||
}
|
||||
|
||||
const Standard_Boolean aDrawAllVerticesFlag = (theDrawer->VertexDrawMode() == Prs3d_VDM_All);
|
||||
if (!aDrawAllVerticesFlag && theShape.ShapeType() != TopAbs_COMPOUND)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// We have to create a compound and collect all subshapes not drawn by the shading algo.
|
||||
// This includes:
|
||||
// - isolated edges
|
||||
|
||||
Reference in New Issue
Block a user