Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
Prs3d Class Reference

The Prs3d package provides the following services. More...

#include <Prs3d.hxx>

Static Public Member Functions

static bool MatchSegment (const double X, const double Y, const double Z, const double aDistance, const gp_Pnt &p1, const gp_Pnt &p2, double &dist)
 draws an arrow at a given location, with respect to a given direction.
 
static double GetDeflection (const NCollection_Vec3< double > &theBndMin, const NCollection_Vec3< double > &theBndMax, const double theDeviationCoefficient)
 Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().
 
static double GetDeflection (const Bnd_Box &theBndBox, const double theDeviationCoefficient, const double theMaximalChordialDeviation)
 Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().
 
static occ::handle< Graphic3d_ArrayOfPrimitivesPrimitivesFromPolylines (const NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &thePoints)
 Assembles array of primitives for sequence of polylines.
 
static void AddPrimitivesGroup (const occ::handle< Prs3d_Presentation > &thePrs, const occ::handle< Prs3d_LineAspect > &theAspect, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &thePolylines)
 Add primitives into new group in presentation and clear the list of polylines.
 
static void AddFreeEdges (NCollection_Sequence< gp_Pnt > &theSegments, const occ::handle< Poly_Triangulation > &thePolyTri, const gp_Trsf &theLocation)
 Add triangulation free edges into sequence of line segments.
 

Detailed Description

The Prs3d package provides the following services.

Member Function Documentation

◆ AddFreeEdges()

static void Prs3d::AddFreeEdges ( NCollection_Sequence< gp_Pnt > & theSegments,
const occ::handle< Poly_Triangulation > & thePolyTri,
const gp_Trsf & theLocation )
static

Add triangulation free edges into sequence of line segments.

Parameters
[out]theSegmentssequence of line segments to fill
[in]thePolyTritriangulation to process
[in]theLocationtransformation to apply

◆ AddPrimitivesGroup()

static void Prs3d::AddPrimitivesGroup ( const occ::handle< Prs3d_Presentation > & thePrs,
const occ::handle< Prs3d_LineAspect > & theAspect,
NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & thePolylines )
static

Add primitives into new group in presentation and clear the list of polylines.

◆ GetDeflection() [1/2]

static double Prs3d::GetDeflection ( const Bnd_Box & theBndBox,
const double theDeviationCoefficient,
const double theMaximalChordialDeviation )
inlinestatic

Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().

Parameters
[in]theBndBoxbounding box
[in]theDeviationCoefficientrelative deflection coefficient from Prs3d_Drawer::DeviationCoefficient()
[in]theMaximalChordialDeviationabsolute deflection coefficient from Prs3d_Drawer::MaximalChordialDeviation()
Returns
absolute deflection coefficient based on bounding box dimensions or theMaximalChordialDeviation if bounding box is Void or Infinite

◆ GetDeflection() [2/2]

static double Prs3d::GetDeflection ( const NCollection_Vec3< double > & theBndMin,
const NCollection_Vec3< double > & theBndMax,
const double theDeviationCoefficient )
inlinestatic

Computes the absolute deflection value based on relative deflection Prs3d_Drawer::DeviationCoefficient().

Parameters
[in]theBndMinbounding box min corner
[in]theBndMaxbounding box max corner
[in]theDeviationCoefficientrelative deflection coefficient from Prs3d_Drawer::DeviationCoefficient()
Returns
absolute deflection coefficient based on bounding box dimensions

◆ MatchSegment()

static bool Prs3d::MatchSegment ( const double X,
const double Y,
const double Z,
const double aDistance,
const gp_Pnt & p1,
const gp_Pnt & p2,
double & dist )
static

draws an arrow at a given location, with respect to a given direction.

◆ PrimitivesFromPolylines()

static occ::handle< Graphic3d_ArrayOfPrimitives > Prs3d::PrimitivesFromPolylines ( const NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & thePoints)
static

Assembles array of primitives for sequence of polylines.

Parameters
[in]thePointsthe polylines sequence
Returns
array of primitives

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