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

The class represents the triangle built from three IntPolyh points and three IntPolyh edges. More...

#include <IntPolyh_Triangle.hxx>

Public Member Functions

 IntPolyh_Triangle ()
 Constructor.
 
 IntPolyh_Triangle (const int thePoint1, const int thePoint2, const int thePoint3)
 Constructor.
 
int FirstPoint () const
 Returns the first point.
 
int SecondPoint () const
 Returns the second point.
 
int ThirdPoint () const
 Returns the third point.
 
int FirstEdge () const
 Returns the first edge.
 
int FirstEdgeOrientation () const
 Returns the orientation of the first edge.
 
int SecondEdge () const
 Returns the second edge.
 
int SecondEdgeOrientation () const
 Returns the orientation of the second edge.
 
int ThirdEdge () const
 Returns the third edge.
 
int ThirdEdgeOrientation () const
 Returns the orientation of the third edge.
 
double Deflection () const
 Returns the deflection of the triangle.
 
bool IsIntersectionPossible () const
 Returns possibility of the intersection.
 
bool HasIntersection () const
 Returns true if the triangle has interfered the other triangle.
 
bool IsDegenerated () const
 Returns the Degenerated flag.
 
void SetFirstPoint (const int thePoint)
 Sets the first point.
 
void SetSecondPoint (const int thePoint)
 Sets the second point.
 
void SetThirdPoint (const int thePoint)
 Sets the third point.
 
void SetFirstEdge (const int theEdge, const int theEdgeOrientation)
 Sets the first edge.
 
void SetSecondEdge (const int theEdge, const int theEdgeOrientation)
 Sets the second edge.
 
void SetThirdEdge (const int theEdge, const int theEdgeOrientation)
 Sets the third edge.
 
void SetDeflection (const double theDeflection)
 Sets the deflection.
 
void SetIntersectionPossible (const bool theIP)
 Sets the flag of possibility of intersection.
 
void SetIntersection (const bool theInt)
 Sets the flag of intersection.
 
void SetDegenerated (const bool theDegFlag)
 Sets the degenerated flag.
 
int GetEdgeNumber (const int theEdgeIndex) const
 Gets the edge number by the index.
 
void SetEdge (const int theEdgeIndex, const int theEdgeNumber)
 Sets the edge by the index.
 
int GetEdgeOrientation (const int theEdgeIndex) const
 Gets the edges orientation by the index.
 
void SetEdgeOrientation (const int theEdgeIndex, const int theEdgeOrientation)
 Sets the edges orientation by the index.
 
double ComputeDeflection (const occ::handle< Adaptor3d_Surface > &theSurface, const IntPolyh_ArrayOfPoints &thePoints)
 Computes the deflection for the triangle.
 
int GetNextTriangle (const int theTriangle, const int theEdgeNum, const IntPolyh_ArrayOfEdges &TEdges) const
 Gets the adjacent triangle.
 
void MiddleRefinement (const int theTriangleNumber, const occ::handle< Adaptor3d_Surface > &theSurface, IntPolyh_ArrayOfPoints &TPoints, IntPolyh_ArrayOfTriangles &TTriangles, IntPolyh_ArrayOfEdges &TEdges)
 Splits the triangle on two to decrease its deflection.
 
void MultipleMiddleRefinement (const double theRefineCriterion, const Bnd_Box &theBox, const int theTriangleNumber, const occ::handle< Adaptor3d_Surface > &theSurface, IntPolyh_ArrayOfPoints &TPoints, IntPolyh_ArrayOfTriangles &TTriangles, IntPolyh_ArrayOfEdges &TEdges)
 Splits the current triangle and new triangles until the refinement criterion is not achieved.
 
void LinkEdges2Triangle (const IntPolyh_ArrayOfEdges &TEdges, const int theEdge1, const int theEdge2, const int theEdge3)
 Links edges to triangle.
 
void SetEdgeAndOrientation (const IntPolyh_Edge &theEdge, const int theEdgeIndex)
 Sets the appropriate edge and orientation for the triangle.
 
const Bnd_BoxBoundingBox (const IntPolyh_ArrayOfPoints &thePoints)
 Returns the bounding box of the triangle.
 
void Dump (const int v) const
 Dumps the contents of the triangle.
 

Detailed Description

The class represents the triangle built from three IntPolyh points and three IntPolyh edges.

Constructor & Destructor Documentation

◆ IntPolyh_Triangle() [1/2]

IntPolyh_Triangle::IntPolyh_Triangle ( )
inline

Constructor.

◆ IntPolyh_Triangle() [2/2]

IntPolyh_Triangle::IntPolyh_Triangle ( const int thePoint1,
const int thePoint2,
const int thePoint3 )
inline

Constructor.

Member Function Documentation

◆ BoundingBox()

const Bnd_Box & IntPolyh_Triangle::BoundingBox ( const IntPolyh_ArrayOfPoints & thePoints)

Returns the bounding box of the triangle.

◆ ComputeDeflection()

double IntPolyh_Triangle::ComputeDeflection ( const occ::handle< Adaptor3d_Surface > & theSurface,
const IntPolyh_ArrayOfPoints & thePoints )

Computes the deflection for the triangle.

◆ Deflection()

double IntPolyh_Triangle::Deflection ( ) const
inline

Returns the deflection of the triangle.

◆ Dump()

void IntPolyh_Triangle::Dump ( const int v) const

Dumps the contents of the triangle.

◆ FirstEdge()

int IntPolyh_Triangle::FirstEdge ( ) const
inline

Returns the first edge.

◆ FirstEdgeOrientation()

int IntPolyh_Triangle::FirstEdgeOrientation ( ) const
inline

Returns the orientation of the first edge.

◆ FirstPoint()

int IntPolyh_Triangle::FirstPoint ( ) const
inline

Returns the first point.

◆ GetEdgeNumber()

int IntPolyh_Triangle::GetEdgeNumber ( const int theEdgeIndex) const
inline

Gets the edge number by the index.

◆ GetEdgeOrientation()

int IntPolyh_Triangle::GetEdgeOrientation ( const int theEdgeIndex) const
inline

Gets the edges orientation by the index.

◆ GetNextTriangle()

int IntPolyh_Triangle::GetNextTriangle ( const int theTriangle,
const int theEdgeNum,
const IntPolyh_ArrayOfEdges & TEdges ) const

Gets the adjacent triangle.

◆ HasIntersection()

bool IntPolyh_Triangle::HasIntersection ( ) const
inline

Returns true if the triangle has interfered the other triangle.

◆ IsDegenerated()

bool IntPolyh_Triangle::IsDegenerated ( ) const
inline

Returns the Degenerated flag.

◆ IsIntersectionPossible()

bool IntPolyh_Triangle::IsIntersectionPossible ( ) const
inline

Returns possibility of the intersection.

◆ LinkEdges2Triangle()

void IntPolyh_Triangle::LinkEdges2Triangle ( const IntPolyh_ArrayOfEdges & TEdges,
const int theEdge1,
const int theEdge2,
const int theEdge3 )

Links edges to triangle.

◆ MiddleRefinement()

void IntPolyh_Triangle::MiddleRefinement ( const int theTriangleNumber,
const occ::handle< Adaptor3d_Surface > & theSurface,
IntPolyh_ArrayOfPoints & TPoints,
IntPolyh_ArrayOfTriangles & TTriangles,
IntPolyh_ArrayOfEdges & TEdges )

Splits the triangle on two to decrease its deflection.

◆ MultipleMiddleRefinement()

void IntPolyh_Triangle::MultipleMiddleRefinement ( const double theRefineCriterion,
const Bnd_Box & theBox,
const int theTriangleNumber,
const occ::handle< Adaptor3d_Surface > & theSurface,
IntPolyh_ArrayOfPoints & TPoints,
IntPolyh_ArrayOfTriangles & TTriangles,
IntPolyh_ArrayOfEdges & TEdges )

Splits the current triangle and new triangles until the refinement criterion is not achieved.

◆ SecondEdge()

int IntPolyh_Triangle::SecondEdge ( ) const
inline

Returns the second edge.

◆ SecondEdgeOrientation()

int IntPolyh_Triangle::SecondEdgeOrientation ( ) const
inline

Returns the orientation of the second edge.

◆ SecondPoint()

int IntPolyh_Triangle::SecondPoint ( ) const
inline

Returns the second point.

◆ SetDeflection()

void IntPolyh_Triangle::SetDeflection ( const double theDeflection)
inline

Sets the deflection.

◆ SetDegenerated()

void IntPolyh_Triangle::SetDegenerated ( const bool theDegFlag)
inline

Sets the degenerated flag.

◆ SetEdge()

void IntPolyh_Triangle::SetEdge ( const int theEdgeIndex,
const int theEdgeNumber )
inline

Sets the edge by the index.

◆ SetEdgeAndOrientation()

void IntPolyh_Triangle::SetEdgeAndOrientation ( const IntPolyh_Edge & theEdge,
const int theEdgeIndex )

Sets the appropriate edge and orientation for the triangle.

◆ SetEdgeOrientation()

void IntPolyh_Triangle::SetEdgeOrientation ( const int theEdgeIndex,
const int theEdgeOrientation )
inline

Sets the edges orientation by the index.

◆ SetFirstEdge()

void IntPolyh_Triangle::SetFirstEdge ( const int theEdge,
const int theEdgeOrientation )
inline

Sets the first edge.

◆ SetFirstPoint()

void IntPolyh_Triangle::SetFirstPoint ( const int thePoint)
inline

Sets the first point.

◆ SetIntersection()

void IntPolyh_Triangle::SetIntersection ( const bool theInt)
inline

Sets the flag of intersection.

◆ SetIntersectionPossible()

void IntPolyh_Triangle::SetIntersectionPossible ( const bool theIP)
inline

Sets the flag of possibility of intersection.

◆ SetSecondEdge()

void IntPolyh_Triangle::SetSecondEdge ( const int theEdge,
const int theEdgeOrientation )
inline

Sets the second edge.

◆ SetSecondPoint()

void IntPolyh_Triangle::SetSecondPoint ( const int thePoint)
inline

Sets the second point.

◆ SetThirdEdge()

void IntPolyh_Triangle::SetThirdEdge ( const int theEdge,
const int theEdgeOrientation )
inline

Sets the third edge.

◆ SetThirdPoint()

void IntPolyh_Triangle::SetThirdPoint ( const int thePoint)
inline

Sets the third point.

◆ ThirdEdge()

int IntPolyh_Triangle::ThirdEdge ( ) const
inline

Returns the third edge.

◆ ThirdEdgeOrientation()

int IntPolyh_Triangle::ThirdEdgeOrientation ( ) const
inline

Returns the orientation of the third edge.

◆ ThirdPoint()

int IntPolyh_Triangle::ThirdPoint ( ) const
inline

Returns the third point.


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