Open CASCADE Technology  7.4.0
Public Member Functions

Poly_CoherentNode Class Reference

#include <Poly_CoherentNode.hxx>

Inheritance diagram for Poly_CoherentNode:
Inheritance graph
[legend]

Public Member Functions

 Poly_CoherentNode ()
 
 Poly_CoherentNode (const gp_XYZ &thePnt)
 
void SetUV (const Standard_Real theU, const Standard_Real theV)
 
Standard_Real GetU () const
 
Standard_Real GetV () const
 
void SetNormal (const gp_XYZ &theVector)
 
Standard_Boolean HasNormal () const
 
gp_XYZ GetNormal () const
 
void SetIndex (const Standard_Integer theIndex)
 
Standard_Integer GetIndex () const
 
Standard_Boolean IsFreeNode () const
 
void Clear (const Handle< NCollection_BaseAllocator > &)
 
void AddTriangle (const Poly_CoherentTriangle &theTri, const Handle< NCollection_BaseAllocator > &theA)
 
Standard_Boolean RemoveTriangle (const Poly_CoherentTriangle &theTri, const Handle< NCollection_BaseAllocator > &theA)
 
Poly_CoherentTriPtr::Iterator TriangleIterator () const
 
void Dump (Standard_OStream &theStream) const
 
- Public Member Functions inherited from gp_XYZ
 gp_XYZ ()
 Creates an XYZ object with zero co-ordinates (0,0,0) More...
 
 gp_XYZ (const Standard_Real X, const Standard_Real Y, const Standard_Real Z)
 creates an XYZ with given coordinates More...
 
void SetCoord (const Standard_Real X, const Standard_Real Y, const Standard_Real Z)
 For this XYZ object, assigns the values X, Y and Z to its three coordinates. More...
 
void SetCoord (const Standard_Integer Index, const Standard_Real Xi)
 modifies the coordinate of range Index Index = 1 => X is modified Index = 2 => Y is modified Index = 3 => Z is modified Raises OutOfRange if Index != {1, 2, 3}. More...
 
void SetX (const Standard_Real X)
 Assigns the given value to the X coordinate. More...
 
void SetY (const Standard_Real Y)
 Assigns the given value to the Y coordinate. More...
 
void SetZ (const Standard_Real Z)
 Assigns the given value to the Z coordinate. More...
 
Standard_Real Coord (const Standard_Integer Index) const
 returns the coordinate of range Index : Index = 1 => X is returned Index = 2 => Y is returned Index = 3 => Z is returned More...
 
Standard_RealChangeCoord (const Standard_Integer theIndex)
 
void Coord (Standard_Real &X, Standard_Real &Y, Standard_Real &Z) const
 
const Standard_RealGetData () const
 Returns a const ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS! More...
 
Standard_RealChangeData ()
 Returns a ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS! More...
 
Standard_Real X () const
 Returns the X coordinate. More...
 
Standard_Real Y () const
 Returns the Y coordinate. More...
 
Standard_Real Z () const
 Returns the Z coordinate. More...
 
Standard_Real Modulus () const
 computes Sqrt (X*X + Y*Y + Z*Z) where X, Y and Z are the three coordinates of this XYZ object. More...
 
Standard_Real SquareModulus () const
 Computes X*X + Y*Y + Z*Z where X, Y and Z are the three coordinates of this XYZ object. More...
 
Standard_Boolean IsEqual (const gp_XYZ &Other, const Standard_Real Tolerance) const
 Returns True if he coordinates of this XYZ object are equal to the respective coordinates Other, within the specified tolerance Tolerance. I.e.: abs(<me>.X() - Other.X()) <= Tolerance and abs(<me>.Y() - Other.Y()) <= Tolerance and abs(<me>.Z() - Other.Z()) <= Tolerance. More...
 
void Add (const gp_XYZ &Other)
 <me>.X() = <me>.X() + Other.X() <me>.Y() = <me>.Y() + Other.Y() <me>.Z() = <me>.Z() + Other.Z() More...
 
void operator+= (const gp_XYZ &Other)
 
gp_XYZ Added (const gp_XYZ &Other) const
 new.X() = <me>.X() + Other.X() new.Y() = <me>.Y() + Other.Y() new.Z() = <me>.Z() + Other.Z() More...
 
gp_XYZ operator+ (const gp_XYZ &Other) const
 
void Cross (const gp_XYZ &Right)
 <me>.X() = <me>.Y() * Other.Z() - <me>.Z() * Other.Y() <me>.Y() = <me>.Z() * Other.X() - <me>.X() * Other.Z() <me>.Z() = <me>.X() * Other.Y() - <me>.Y() * Other.X() More...
 
void operator^= (const gp_XYZ &Right)
 
gp_XYZ Crossed (const gp_XYZ &Right) const
 new.X() = <me>.Y() * Other.Z() - <me>.Z() * Other.Y() new.Y() = <me>.Z() * Other.X() - <me>.X() * Other.Z() new.Z() = <me>.X() * Other.Y() - <me>.Y() * Other.X() More...
 
gp_XYZ operator^ (const gp_XYZ &Right) const
 
Standard_Real CrossMagnitude (const gp_XYZ &Right) const
 Computes the magnitude of the cross product between <me> and Right. Returns || <me> ^ Right ||. More...
 
Standard_Real CrossSquareMagnitude (const gp_XYZ &Right) const
 Computes the square magnitude of the cross product between <me> and Right. Returns || <me> ^ Right ||**2. More...
 
void CrossCross (const gp_XYZ &Coord1, const gp_XYZ &Coord2)
 Triple vector product Computes <me> = <me>.Cross(Coord1.Cross(Coord2)) More...
 
gp_XYZ CrossCrossed (const gp_XYZ &Coord1, const gp_XYZ &Coord2) const
 Triple vector product computes New = <me>.Cross(Coord1.Cross(Coord2)) More...
 
void Divide (const Standard_Real Scalar)
 divides <me> by a real. More...
 
void operator/= (const Standard_Real Scalar)
 
gp_XYZ Divided (const Standard_Real Scalar) const
 divides <me> by a real. More...
 
gp_XYZ operator/ (const Standard_Real Scalar) const
 
Standard_Real Dot (const gp_XYZ &Other) const
 computes the scalar product between <me> and Other More...
 
Standard_Real operator* (const gp_XYZ &Other) const
 
Standard_Real DotCross (const gp_XYZ &Coord1, const gp_XYZ &Coord2) const
 computes the triple scalar product More...
 
void Multiply (const Standard_Real Scalar)
 <me>.X() = <me>.X() * Scalar; <me>.Y() = <me>.Y() * Scalar; <me>.Z() = <me>.Z() * Scalar; More...
 
void operator*= (const Standard_Real Scalar)
 
void Multiply (const gp_XYZ &Other)
 <me>.X() = <me>.X() * Other.X(); <me>.Y() = <me>.Y() * Other.Y(); <me>.Z() = <me>.Z() * Other.Z(); More...
 
void operator*= (const gp_XYZ &Other)
 
void Multiply (const gp_Mat &Matrix)
 <me> = Matrix * <me> More...
 
void operator*= (const gp_Mat &Matrix)
 
gp_XYZ Multiplied (const Standard_Real Scalar) const
 New.X() = <me>.X() * Scalar; New.Y() = <me>.Y() * Scalar; New.Z() = <me>.Z() * Scalar;. More...
 
gp_XYZ operator* (const Standard_Real Scalar) const
 
gp_XYZ Multiplied (const gp_XYZ &Other) const
 new.X() = <me>.X() * Other.X(); new.Y() = <me>.Y() * Other.Y(); new.Z() = <me>.Z() * Other.Z(); More...
 
gp_XYZ Multiplied (const gp_Mat &Matrix) const
 New = Matrix * <me> More...
 
gp_XYZ operator* (const gp_Mat &Matrix) const
 
void Normalize ()
 <me>.X() = <me>.X()/ <me>.Modulus() <me>.Y() = <me>.Y()/ <me>.Modulus() <me>.Z() = <me>.Z()/ <me>.Modulus() Raised if <me>.Modulus() <= Resolution from gp More...
 
gp_XYZ Normalized () const
 New.X() = <me>.X()/ <me>.Modulus() New.Y() = <me>.Y()/ <me>.Modulus() New.Z() = <me>.Z()/ <me>.Modulus() Raised if <me>.Modulus() <= Resolution from gp. More...
 
void Reverse ()
 <me>.X() = -<me>.X() <me>.Y() = -<me>.Y() <me>.Z() = -<me>.Z() More...
 
gp_XYZ Reversed () const
 New.X() = -<me>.X() New.Y() = -<me>.Y() New.Z() = -<me>.Z() More...
 
void Subtract (const gp_XYZ &Right)
 <me>.X() = <me>.X() - Other.X() <me>.Y() = <me>.Y() - Other.Y() <me>.Z() = <me>.Z() - Other.Z() More...
 
void operator-= (const gp_XYZ &Right)
 
gp_XYZ Subtracted (const gp_XYZ &Right) const
 new.X() = <me>.X() - Other.X() new.Y() = <me>.Y() - Other.Y() new.Z() = <me>.Z() - Other.Z() More...
 
gp_XYZ operator- (const gp_XYZ &Right) const
 
void SetLinearForm (const Standard_Real A1, const gp_XYZ &XYZ1, const Standard_Real A2, const gp_XYZ &XYZ2, const Standard_Real A3, const gp_XYZ &XYZ3, const gp_XYZ &XYZ4)
 <me> is set to the following linear form : A1 * XYZ1 + A2 * XYZ2 + A3 * XYZ3 + XYZ4 More...
 
void SetLinearForm (const Standard_Real A1, const gp_XYZ &XYZ1, const Standard_Real A2, const gp_XYZ &XYZ2, const Standard_Real A3, const gp_XYZ &XYZ3)
 <me> is set to the following linear form : A1 * XYZ1 + A2 * XYZ2 + A3 * XYZ3 More...
 
void SetLinearForm (const Standard_Real A1, const gp_XYZ &XYZ1, const Standard_Real A2, const gp_XYZ &XYZ2, const gp_XYZ &XYZ3)
 <me> is set to the following linear form : A1 * XYZ1 + A2 * XYZ2 + XYZ3 More...
 
void SetLinearForm (const Standard_Real A1, const gp_XYZ &XYZ1, const Standard_Real A2, const gp_XYZ &XYZ2)
 <me> is set to the following linear form : A1 * XYZ1 + A2 * XYZ2 More...
 
void SetLinearForm (const Standard_Real A1, const gp_XYZ &XYZ1, const gp_XYZ &XYZ2)
 <me> is set to the following linear form : A1 * XYZ1 + XYZ2 More...
 
void SetLinearForm (const gp_XYZ &XYZ1, const gp_XYZ &XYZ2)
 <me> is set to the following linear form : XYZ1 + XYZ2 More...
 
void DumpJson (Standard_OStream &theOStream, const Standard_Integer theDepth=-1) const
 Dumps the content of me into the stream. More...
 

Detailed Description

Node of coherent triangulation. Contains:

Constructor & Destructor Documentation

◆ Poly_CoherentNode() [1/2]

Poly_CoherentNode::Poly_CoherentNode ( )
inline

Empty constructor.

◆ Poly_CoherentNode() [2/2]

Poly_CoherentNode::Poly_CoherentNode ( const gp_XYZ thePnt)
inline

Constructor.

Member Function Documentation

◆ AddTriangle()

void Poly_CoherentNode::AddTriangle ( const Poly_CoherentTriangle theTri,
const Handle< NCollection_BaseAllocator > &  theA 
)

Connect a triangle to this Node.

◆ Clear()

void Poly_CoherentNode::Clear ( const Handle< NCollection_BaseAllocator > &  )

Reset the Node to void.

◆ Dump()

void Poly_CoherentNode::Dump ( Standard_OStream theStream) const

◆ GetIndex()

Standard_Integer Poly_CoherentNode::GetIndex ( ) const
inline

Get the value of node Index.

◆ GetNormal()

gp_XYZ Poly_CoherentNode::GetNormal ( ) const
inline

Get the stored normal in the node.

◆ GetU()

Standard_Real Poly_CoherentNode::GetU ( ) const
inline

Get U coordinate of the Node.

◆ GetV()

Standard_Real Poly_CoherentNode::GetV ( ) const
inline

Get V coordinate of the Node.

◆ HasNormal()

Standard_Boolean Poly_CoherentNode::HasNormal ( ) const
inline

Query if the Node contains a normal vector.

◆ IsFreeNode()

Standard_Boolean Poly_CoherentNode::IsFreeNode ( ) const
inline

Check if this is a free node, i.e., a node without a single incident triangle.

◆ RemoveTriangle()

Standard_Boolean Poly_CoherentNode::RemoveTriangle ( const Poly_CoherentTriangle theTri,
const Handle< NCollection_BaseAllocator > &  theA 
)

Disconnect a triangle from this Node.

◆ SetIndex()

void Poly_CoherentNode::SetIndex ( const Standard_Integer  theIndex)
inline

Set the value of node Index.

◆ SetNormal()

void Poly_CoherentNode::SetNormal ( const gp_XYZ theVector)

Define the normal vector in the Node.

◆ SetUV()

void Poly_CoherentNode::SetUV ( const Standard_Real  theU,
const Standard_Real  theV 
)
inline

Set the UV coordinates of the Node.

◆ TriangleIterator()

Poly_CoherentTriPtr::Iterator Poly_CoherentNode::TriangleIterator ( ) const
inline

Create an iterator of incident triangles.


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