3DCoatScripting  4.8.31β
You can manage 3DСoat features with help of scripting
coat::scripto::AMesh< T > Class Template Reference

Abstract mesh. More...

Inherited by coat::scripto::MeshX< T >.

Public Types

enum  Mode { Add = 0, Subtract = 1, Intersect = 2 }
 
typedef comms::cMeshContainer raw_t
 

Public Member Functions

 mRaw (raw)
 
 AMesh (const AAbout &d)
 
const AAbout & aabout () const
 
bool operator== (const AMesh &b) const
 Comparison. More...
 
T & details (const float &d)
 Setter for details level.
 
float details () const
 Getter for details level.
 
T & position (const Vec3 &p)
 Setter for position.
 
Vec3 position () const
 Getter for position.
 
T & rotation (const Angles &a)
 Setter for rotation.
 
Angles rotation () const
 Getter for rotation.
 
T & transform (const Mat4 &m)
 Setter for transform.
 
Mat4 transform () const
 Getter for transform.
 
T & add (const T &b)
 Fusion a mesh b to this mesh. More...
 
T & add (const T &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh addCopy (const T &b) const
 
Mesh addCopy (const T &, const Bevel &) const
 
Mesh operator| (const T &) const
 Fusion two meshes to one mesh. Logical OR. More...
 
T & subtruct (const T &b)
 Fusion a mesh b to this mesh. More...
 
T & subtruct (const T &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh subtructCopy (const T &b) const
 
Mesh subtructCopy (const T &, const Bevel &) const
 
Mesh operator- (const T &) const
 Subtract mesh b from this mesh. More...
 
T & intersect (const T &b)
 Fusion a mesh b to this mesh. More...
 
T & intersect (const T &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh intersectCopy (const T &b) const
 
Mesh intersectCopy (const T &, const Bevel &) const
 
Mesh operator& (const T &) const
 Intersects mesh b and this mesh. Logical AND. More...
 
const raw_traw () const
 
raw_traw ()
 

Protected Member Functions

T & castThis ()
 

Protected Attributes

AAbout mAAbout
 
raw_t mRaw
 

Detailed Description

template<class T>
class coat::scripto::AMesh< T >

Abstract mesh.

See Also
Mesh

Member Enumeration Documentation

template<class T>
enum coat::scripto::AMesh::Mode
strong

Operations with meshes.

See Also
signMode()

Member Function Documentation

template<class T>
bool coat::scripto::AMesh< T >::operator== ( const AMesh< T > &  b) const
inline

Comparison.

Mesh a;
Mesh b;
...
if (a == b) { ... }
template<class T>
T& coat::scripto::AMesh< T >::add ( const T &  b)
inline

Fusion a mesh b to this mesh.

a.add( b );
See Also
operator|(), addCopy()
Since
4.7.15
template<class T>
T & coat::scripto::AMesh< T >::add ( const T &  b,
const Bevel o 
)

Fusion a mesh b to this mesh with bevel.

a.add( b );
See Also
Bevel, operator|(), addCopy()
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::addCopy ( const T &  b) const
See Also
add( const Mesh& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::addCopy ( const T &  b,
const Bevel o 
) const
See Also
add( const Mesh&, const Bevel& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::operator| ( const T &  b) const

Fusion two meshes to one mesh. Logical OR.

Mesh r = a | b;
See Also
add()
template<class T>
T& coat::scripto::AMesh< T >::subtruct ( const T &  b)
inline

Fusion a mesh b to this mesh.

a.subtruct( b );

operator-()

Since
4.7.15
template<class T>
T & coat::scripto::AMesh< T >::subtruct ( const T &  b,
const Bevel o 
)

Fusion a mesh b to this mesh with bevel.

a.subtruct( b );
See Also
Bevel
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::subtructCopy ( const T &  b) const
See Also
subtruct( const Mesh& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::subtructCopy ( const T &  b,
const Bevel o 
) const
See Also
subtruct( const Mesh&, const Bevel& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::operator- ( const T &  b) const

Subtract mesh b from this mesh.

Mesh r = a - b;
See Also
subtruct()
template<class T>
T& coat::scripto::AMesh< T >::intersect ( const T &  b)
inline

Fusion a mesh b to this mesh.

a.intersect( b );

operator&()

Since
4.7.15
template<class T>
T & coat::scripto::AMesh< T >::intersect ( const T &  b,
const Bevel o 
)

Fusion a mesh b to this mesh with bevel.

a.intersect( b );
See Also
Bevel
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::intersectCopy ( const T &  b) const
See Also
intersect( const Mesh& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::intersectCopy ( const T &  b,
const Bevel o 
) const
See Also
intersect( const Mesh&, const Bevel& )
Since
4.7.15
template<class T>
Mesh coat::scripto::AMesh< T >::operator& ( const T &  b) const

Intersects mesh b and this mesh. Logical AND.

Mesh r = a & b;
See Also
intersect()