STLpoint Class Reference

A vertex point or facet normal representation for STL files. More...

Inheritance diagram for STLpoint:
[legend]
Collaboration diagram for STLpoint:
[legend]

Public Member Functions

 STLpoint ()=default
 Default construct. More...
 
 STLpoint (const Vector< float > &p)
 Construct from single-precision point. More...
 
 STLpoint (const Vector< double > &p)
 Construct from double-precision point. More...
 
 STLpoint (float x, float y, float z)
 Construct from single-precision components. More...
 
 STLpoint (double x, double y, double z)
 Construct from double-precision components. More...
 
- Public Member Functions inherited from Vector< float >
 Vector ()=default
 Default construct. More...
 
 Vector (const Vector &)=default
 Copy construct. More...
 
 Vector (const Foam::zero)
 Construct initialized to zero. More...
 
 Vector (const VectorSpace< Vector< Cmpt2 >, Cmpt2, 3 > &vs)
 Copy construct from VectorSpace of the same rank. More...
 
 Vector (const float &vx, const float &vy, const float &vz)
 Construct from three components. More...
 
 Vector (Istream &is)
 Construct from Istream. More...
 
Vectoroperator= (const Vector &)=default
 Copy assignment. More...
 
const float & x () const
 Access to the vector x component. More...
 
float & x ()
 Access to the vector x component. More...
 
const float & y () const
 Access to the vector y component. More...
 
float & y ()
 Access to the vector y component. More...
 
const float & z () const
 Access to the vector z component. More...
 
float & z ()
 Access to the vector z component. More...
 
Vector< float > & normalise (const scalar tol=ROOTVSMALL)
 Inplace normalise the vector by its magnitude. More...
 
Vector< float > & removeCollinear (const Vector< float > &unitVec)
 
const Vector< float > & centre (const Foam::UList< Vector< float > > &) const
 Return *this (used for point which is a typedef to Vector<scalar>. More...
 
- Public Member Functions inherited from VectorSpace< Form, Cmpt, Ncmpts >
 VectorSpace ()=default
 Default construct. More...
 
 VectorSpace (const Foam::zero)
 Construct initialized to zero. More...
 
 VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs)
 Copy construct. More...
 
template<class Form2 , class Cmpt2 >
 VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &)
 Copy construct of a VectorSpace with the same size. More...
 
 VectorSpace (Istream &is)
 Construct from Istream. More...
 
const Cmpt & component (const direction) const
 
Cmpt & component (const direction)
 
void component (Cmpt &, const direction) const
 
void replace (const direction, const Cmpt &)
 
const Cmpt * cdata () const noexcept
 Return const pointer to the first data element. More...
 
Cmpt * data () noexcept
 Return pointer to the first data element. More...
 
template<class SubVector , direction BStart>
const ConstBlock< SubVector, BStart > block () const
 
const Cmpt & operator[] (const direction) const
 
Cmpt & operator[] (const direction)
 
void operator= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator= (const Foam::zero)
 
void operator*= (const scalar)
 
void operator/= (const scalar)
 
iterator begin () noexcept
 Return an iterator to begin of VectorSpace. More...
 
iterator end () noexcept
 Return an iterator to end of VectorSpace. More...
 
const_iterator cbegin () const noexcept
 Return const_iterator to begin of VectorSpace. More...
 
const_iterator cend () const noexcept
 Return const_iterator to end of VectorSpace. More...
 
const_iterator begin () const noexcept
 Return const_iterator to begin of VectorSpace. More...
 
const_iterator end () const noexcept
 Return const_iterator to end of VectorSpace. More...
 
template<class SubVector , Foam::direction BStart>
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > block () const
 

Additional Inherited Members

- Public Types inherited from Vector< float >
enum  components
 Component labeling enumeration. More...
 
typedef Vector< label > labelType
 Equivalent type of labels used for valid component indexing. More...
 
- Public Types inherited from VectorSpace< Form, Cmpt, Ncmpts >
typedef VectorSpace< Form, Cmpt, Ncmpts > vsType
 VectorSpace type. More...
 
typedef Cmpt cmptType
 Component type. More...
 
typedef Cmpt magType
 Magnitude type. More...
 
typedef Cmpt * iterator
 Random access iterator for traversing VectorSpace. More...
 
typedef const Cmpt * const_iterator
 Random access iterator for traversing VectorSpace. More...
 
- Static Public Member Functions inherited from VectorSpace< Form, Cmpt, Ncmpts >
static constexpr direction size () noexcept
 The number of elements in the VectorSpace = Ncmpts. More...
 
static Form uniform (const Cmpt &s)
 Return a VectorSpace with all elements = s. More...
 
- Public Attributes inherited from VectorSpace< Form, Cmpt, Ncmpts >
Cmpt v_ [Ncmpts]
 The components of this vector space. More...
 
- Static Public Attributes inherited from Vector< float >
static constexpr direction rank
 Rank of Vector is 1. More...
 
- Static Public Attributes inherited from VectorSpace< Form, Cmpt, Ncmpts >
static constexpr direction dim = 3
 Dimensionality of space. More...
 
static constexpr direction nComponents = Ncmpts
 Number of components in this vector space. More...
 
static constexpr direction mRows = Ncmpts
 
static constexpr direction nCols = 1
 
static const char *const typeName = "diagTensor"
 
static const char *const componentNames []
 
static const Form zero
 
static const Form one
 
static const Form max
 
static const Form min
 
static const Form rootMax
 
static const Form rootMin
 

Detailed Description

A vertex point or facet normal representation for STL files.

Definition at line 49 of file STLpoint.H.

Constructor & Destructor Documentation

◆ STLpoint() [1/5]

STLpoint ( )
default

Default construct.

◆ STLpoint() [2/5]

STLpoint ( const Vector< float > &  p)
inline

Construct from single-precision point.

Definition at line 61 of file STLpoint.H.

◆ STLpoint() [3/5]

STLpoint ( const Vector< double > &  p)
inline

Construct from double-precision point.

Definition at line 67 of file STLpoint.H.

◆ STLpoint() [4/5]

STLpoint ( float  x,
float  y,
float  z 
)
inline

Construct from single-precision components.

Definition at line 73 of file STLpoint.H.

◆ STLpoint() [5/5]

STLpoint ( double  x,
double  y,
double  z 
)
inline

Construct from double-precision components.

Definition at line 79 of file STLpoint.H.


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