A vertex point or facet normal representation for STL files. More...
Public Member Functions | |
| STLpoint () | |
| Construct null. 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< Cmpt > | |
| Vector ()=default | |
| Default construct. More... | |
| Vector (const Vector &)=default | |
| Copy construct. More... | |
| Vector & | operator= (const Vector &)=default |
| Copy assignment. More... | |
| Vector (const Foam::zero) | |
| Construct initialized to zero. More... | |
| template<class Cmpt2 > | |
| Vector (const VectorSpace< Vector< Cmpt2 >, Cmpt2, 3 > &vs) | |
| Copy construct from VectorSpace of the same rank. More... | |
| Vector (const Cmpt &vx, const Cmpt &vy, const Cmpt &vz) | |
| Construct from three components. More... | |
| Vector (Istream &is) | |
| Construct from Istream. More... | |
| const Cmpt & | x () const |
| Access to the vector x component. More... | |
| const Cmpt & | y () const |
| Access to the vector y component. More... | |
| const Cmpt & | z () const |
| Access to the vector z component. More... | |
| Cmpt & | x () |
| Access to the vector x component. More... | |
| Cmpt & | y () |
| Access to the vector y component. More... | |
| Cmpt & | z () |
| Access to the vector z component. More... | |
| Vector< Cmpt > & | normalise () |
| Normalise the vector by its magnitude. More... | |
| const Vector< Cmpt > & | centre (const Foam::List< Vector< Cmpt >> &) const |
| Return *this (used for point which is a typedef to Vector<scalar>. More... | |
Public Member Functions inherited from VectorSpace< Vector< Cmpt >, Cmpt, 3 > | |
| VectorSpace ()=default | |
| Default construct. More... | |
| VectorSpace (const Foam::zero) | |
| Construct initialized to zero. More... | |
| VectorSpace (const VectorSpace< Vector< Cmpt >, Cmpt, Ncmpts > &vs) | |
| Copy construct. More... | |
| 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... | |
| const ConstBlock< SubVector, BStart > | block () const |
| const Foam::VectorSpace< Vector< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
| const Cmpt & | operator[] (const direction) const |
| Cmpt & | operator[] (const direction) |
| void | operator= (const VectorSpace< Vector< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator= (const Foam::zero) |
| void | operator+= (const VectorSpace< Vector< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator-= (const VectorSpace< Vector< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
| iterator | begin () |
| Return an iterator to begin of VectorSpace. More... | |
| const_iterator | begin () const |
| Return const_iterator to begin of VectorSpace. More... | |
| iterator | end () |
| Return an iterator to end of VectorSpace. More... | |
| const_iterator | end () const |
| Return const_iterator to end of VectorSpace. More... | |
| const_iterator | cbegin () const |
| Return const_iterator to begin of VectorSpace. More... | |
| const_iterator | cend () const |
| Return const_iterator to end of VectorSpace. More... | |
Additional Inherited Members | |
Public Types inherited from Vector< Cmpt > | |
| enum | components { X, Y, Z } |
| Component labeling enumeration. More... | |
| typedef Vector< label > | labelType |
| Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from VectorSpace< Vector< Cmpt >, Cmpt, 3 > | |
| typedef VectorSpace< Vector< Cmpt >, 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... | |
Static Public Member Functions inherited from VectorSpace< Vector< Cmpt >, Cmpt, 3 > | |
| static constexpr direction | size () noexcept |
| The number of elements in the VectorSpace = Ncmpts. More... | |
| static Vector< Cmpt > | uniform (const Cmpt &s) |
| Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< Vector< Cmpt >, Cmpt, 3 > | |
| const typedef Cmpt * | const_iterator |
| Random access iterator for traversing VectorSpace. More... | |
| Cmpt | v_ [Ncmpts] |
| The components of this vector space. More... | |
Static Public Attributes inherited from Vector< Cmpt > | |
| static constexpr direction | rank = 1 |
| Rank of Vector is 1. More... | |
Static Public Attributes inherited from VectorSpace< Vector< Cmpt >, Cmpt, 3 > | |
| static constexpr direction | dim |
| Dimensionality of space. More... | |
| static constexpr direction | nComponents |
| Number of components in this vector space. More... | |
| static constexpr direction | mRows |
| static constexpr direction | nCols |
| static const char *const | typeName |
| static const char *const | componentNames [] |
| static const Vector< Cmpt > | zero |
| static const Vector< Cmpt > | one |
| static const Vector< Cmpt > | max |
| static const Vector< Cmpt > | min |
| static const Vector< Cmpt > | rootMax |
| static const Vector< Cmpt > | rootMin |
A vertex point or facet normal representation for STL files.
Definition at line 49 of file STLpoint.H.
|
inline |
Construct null.
Definition at line 59 of file STLpoint.H.
Construct from single-precision point.
Definition at line 63 of file STLpoint.H.
Construct from double-precision point.
Definition at line 69 of file STLpoint.H.
|
inline |
Construct from single-precision components.
Definition at line 75 of file STLpoint.H.
|
inline |
Construct from double-precision components.
Definition at line 81 of file STLpoint.H.