1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0028213: Visualization, StdPrs_ShadedShape - compute face edges for triangulation-only Faces

This commit is contained in:
kgv
2016-12-12 12:54:25 +03:00
committed by apn
parent 3a4a396251
commit 0a8630615d
4 changed files with 98 additions and 47 deletions

View File

@@ -37,6 +37,20 @@ public:
const TopoDS_Shape& theShape,
const Handle (Prs3d_Drawer)& theDrawer);
//! Compute free and boundary edges on a triangulation of each face in the given shape.
//! @param theShape [in] the list of triangulated faces
//! @param theToExcludeGeometric [in] flag indicating that Faces with defined Surface should be skipped
Standard_EXPORT static Handle(Graphic3d_ArrayOfPrimitives) AddEdgesOnTriangulation (const TopoDS_Shape& theShape,
const Standard_Boolean theToExcludeGeometric = Standard_True);
//! Compute free and boundary edges on a triangulation of each face in the given shape.
//! @param theSegments [in] the sequence of points defining segments
//! @param theShape [in] the list of triangulated faces
//! @param theToExcludeGeometric [in] flag indicating that Faces with defined Surface should be skipped
Standard_EXPORT static void AddEdgesOnTriangulation (TColgp_SequenceOfPnt& theSegments,
const TopoDS_Shape& theShape,
const Standard_Boolean theToExcludeGeometric = Standard_True);
private:
//! Compute edge presentations for a shape.
@@ -48,15 +62,6 @@ private:
const Standard_Real theShapeDeflection,
Prs3d_NListOfSequenceOfPnt& thePolylines);
//! Compute free and boundary edges on a triangulation of a face.
//! @param thePresentation [in] the presentation.
//! @param theFaces [in] the list of triangulated faces.
//! @param theAspect [in] the edge drawing aspect.
//! @param theDrawer [in] the drawer settings.
static void addEdgesOnTriangulation (const Handle(Prs3d_Presentation)& thePresentation,
const TopTools_ListOfShape& theFaces,
const Handle (Prs3d_LineAspect)& theAspect);
//! Compute vertex presentation for a shape.
//! @param thePresentation [in] the presentation.
//! @param theVertices [in] the list of points.