Open CASCADE Technology  7.2.0
Static Public Member Functions
StdPrs_ShadedShape Class Reference

Auxiliary procedures to prepare Shaded presentation of specified shape. More...

#include <StdPrs_ShadedShape.hxx>

Inheritance diagram for StdPrs_ShadedShape:
Inheritance graph
[legend]

Static Public Member Functions

static void Add (const Handle< Prs3d_Presentation > &thePresentation, const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer, const StdPrs_Volume theVolume=StdPrs_Volume_Autodetection)
 Shades <theShape>. More...
 
static void Add (const Handle< Prs3d_Presentation > &thePresentation, const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer, const Standard_Boolean theHasTexels, const gp_Pnt2d &theUVOrigin, const gp_Pnt2d &theUVRepeat, const gp_Pnt2d &theUVScale, const StdPrs_Volume theVolume=StdPrs_Volume_Autodetection)
 Shades <theShape> with texture coordinates. More...
 
static void ExploreSolids (const TopoDS_Shape &theShape, const BRep_Builder &theBuilder, TopoDS_Compound &theClosed, TopoDS_Compound &theOpened, const Standard_Boolean theIgnore1DSubShape)
 Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes. More...
 
static void AddWireframeForFreeElements (const Handle< Prs3d_Presentation > &thePrs, const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer)
 Computes wireframe presentation for free wires and vertices. More...
 
static void AddWireframeForFacesWithoutTriangles (const Handle< Prs3d_Presentation > &thePrs, const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer)
 Computes special wireframe presentation for faces without triangulation. More...
 
static Handle< Graphic3d_ArrayOfTrianglesFillTriangles (const TopoDS_Shape &theShape)
 Create primitive array with triangles for specified shape. More...
 
static Handle< Graphic3d_ArrayOfTrianglesFillTriangles (const TopoDS_Shape &theShape, const Standard_Boolean theHasTexels, const gp_Pnt2d &theUVOrigin, const gp_Pnt2d &theUVRepeat, const gp_Pnt2d &theUVScale)
 Create primitive array of triangles for specified shape. More...
 
static Handle< Graphic3d_ArrayOfSegmentsFillFaceBoundaries (const TopoDS_Shape &theShape)
 Define primitive array of boundary segments for specified shape. More...
 
- Static Public Member Functions inherited from Prs3d_Root
static Handle< Graphic3d_GroupCurrentGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the current (last created) group of primititves inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 
static Handle< Graphic3d_GroupNewGroup (const Handle< Prs3d_Presentation > &thePrs3d)
 Returns the new group of primitives inside graphic objects in the display. A group also contains the attributes whose ranges are limited to the primitives in it. More...
 

Detailed Description

Auxiliary procedures to prepare Shaded presentation of specified shape.

Member Function Documentation

◆ Add() [1/2]

static void StdPrs_ShadedShape::Add ( const Handle< Prs3d_Presentation > &  thePresentation,
const TopoDS_Shape theShape,
const Handle< Prs3d_Drawer > &  theDrawer,
const StdPrs_Volume  theVolume = StdPrs_Volume_Autodetection 
)
static

Shades <theShape>.

Parameters
theVolumeTypedefines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)

◆ Add() [2/2]

static void StdPrs_ShadedShape::Add ( const Handle< Prs3d_Presentation > &  thePresentation,
const TopoDS_Shape theShape,
const Handle< Prs3d_Drawer > &  theDrawer,
const Standard_Boolean  theHasTexels,
const gp_Pnt2d theUVOrigin,
const gp_Pnt2d theUVRepeat,
const gp_Pnt2d theUVScale,
const StdPrs_Volume  theVolume = StdPrs_Volume_Autodetection 
)
static

Shades <theShape> with texture coordinates.

Parameters
theVolumeTypedefines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)

◆ AddWireframeForFacesWithoutTriangles()

static void StdPrs_ShadedShape::AddWireframeForFacesWithoutTriangles ( const Handle< Prs3d_Presentation > &  thePrs,
const TopoDS_Shape theShape,
const Handle< Prs3d_Drawer > &  theDrawer 
)
static

Computes special wireframe presentation for faces without triangulation.

◆ AddWireframeForFreeElements()

static void StdPrs_ShadedShape::AddWireframeForFreeElements ( const Handle< Prs3d_Presentation > &  thePrs,
const TopoDS_Shape theShape,
const Handle< Prs3d_Drawer > &  theDrawer 
)
static

Computes wireframe presentation for free wires and vertices.

◆ ExploreSolids()

static void StdPrs_ShadedShape::ExploreSolids ( const TopoDS_Shape theShape,
const BRep_Builder theBuilder,
TopoDS_Compound theClosed,
TopoDS_Compound theOpened,
const Standard_Boolean  theIgnore1DSubShape 
)
static

Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes.

◆ FillFaceBoundaries()

static Handle< Graphic3d_ArrayOfSegments > StdPrs_ShadedShape::FillFaceBoundaries ( const TopoDS_Shape theShape)
static

Define primitive array of boundary segments for specified shape.

Parameters
theShapesegments array or NULL if specified face does not have computed triangulation

◆ FillTriangles() [1/2]

static Handle< Graphic3d_ArrayOfTriangles > StdPrs_ShadedShape::FillTriangles ( const TopoDS_Shape theShape)
inlinestatic

Create primitive array with triangles for specified shape.

Parameters
theShape[in] the shape with precomputed triangulation

◆ FillTriangles() [2/2]

static Handle< Graphic3d_ArrayOfTriangles > StdPrs_ShadedShape::FillTriangles ( const TopoDS_Shape theShape,
const Standard_Boolean  theHasTexels,
const gp_Pnt2d theUVOrigin,
const gp_Pnt2d theUVRepeat,
const gp_Pnt2d theUVScale 
)
static

Create primitive array of triangles for specified shape.

Parameters
theShapethe shape with precomputed triangulation
theHasTexelsdefine UV coordinates in primitive array
theUVOriginorigin for UV coordinates
theUVRepeatrepeat parameters for UV coordinates
theUVScalescale coefficients for UV coordinates
Returns
triangles array or NULL if specified face does not have computed triangulation

The documentation for this class was generated from the following file: