3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
coat::scripto::Mesh Class Reference

Class for working with polygon mesh which represents like any form. More...

#include <SMesh.h>

Public Types

enum  Mode
 Operations with meshes. More...
 

Public Member Functions

 Mesh (const std::string &fullPathFileOrLayerName)
 Load from file or layer. More...
 
bool operator== (const Mesh &b) const
 Comparison. More...
 
bool operator== (const AMesh &b) const
 Comparison. More...
 
Meshdetails (const float &d)
 Setter for details level. More...
 
float details () const
 Getter for details level. More...
 
Meshposition (const Vec3 &p)
 Setter for position. More...
 
Vec3 position () const
 Getter for position. More...
 
Meshrotation (const Angles &a)
 Setter for rotation. More...
 
Angles rotation () const
 Getter for rotation. More...
 
Meshtransform (const Mat4 &m)
 Setter for transform. More...
 
Mat4 transform () const
 Getter for transform. More...
 
Meshadd (const Mesh &b)
 Fusion a mesh b to this mesh. More...
 
Meshadd (const Mesh &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh addCopy (const Mesh &b) const
 
Mesh addCopy (const Mesh &, const Bevel &) const
 
Mesh operator| (const Mesh &) const
 Fusion two meshes to one mesh. Logical OR. More...
 
Meshsubtruct (const Mesh &b)
 Fusion a mesh b to this mesh. More...
 
Meshsubtruct (const Mesh &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh subtructCopy (const Mesh &b) const
 
Mesh subtructCopy (const Mesh &, const Bevel &) const
 
Mesh operator- (const Mesh &) const
 Subtract mesh b from this mesh. More...
 
Meshintersect (const Mesh &b)
 Fusion a mesh b to this mesh. More...
 
Meshintersect (const Mesh &, const Bevel &)
 Fusion a mesh b to this mesh with bevel. More...
 
Mesh intersectCopy (const Mesh &b) const
 
Mesh intersectCopy (const Mesh &, const Bevel &) const
 
Mesh operator& (const Mesh &) const
 Intersects mesh b and this mesh. Logical AND. More...
 

Detailed Description

Class for working with polygon mesh which represents like any form.

mesh.jpg
Since
4.5.32
+ Inheritance diagram for coat::scripto::Mesh:

Member Enumeration Documentation

enum coat::scripto::AMesh::Mode
stronginherited

Operations with meshes.

See Also
signMode()

Constructor & Destructor Documentation

coat::scripto::Mesh::Mesh ( const std::string &  fullPathFileOrLayerName)
inline

Load from file or layer.

If layer not found by name when using a current layer.

Warning
Does not include hierarchy of layer.

Member Function Documentation

Mesh & coat::scripto::AMesh< Mesh >::add ( const Mesh b)
inlineinherited

Fusion a mesh b to this mesh.

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

Fusion a mesh b to this mesh with bevel.

a.add( b );
See Also
Bevel, operator|(), addCopy()
Since
4.7.15
Mesh coat::scripto::AMesh< Mesh >::addCopy ( const Mesh b) const
inherited
See Also
add( const Mesh& )
Since
4.7.15
Mesh coat::scripto::AMesh< Mesh >::addCopy ( const Mesh ,
const Bevel  
) const
inherited
See Also
add( const Mesh&, const Bevel& )
Since
4.7.15
Mesh & coat::scripto::AMesh< Mesh >::details ( const float &  d)
inlineinherited

Setter for details level.

float coat::scripto::AMesh< Mesh >::details ( ) const
inlineinherited

Getter for details level.

Mesh & coat::scripto::AMesh< Mesh >::intersect ( const Mesh b)
inlineinherited

Fusion a mesh b to this mesh.

a.intersect( b );

operator&()

Since
4.7.15
Mesh & coat::scripto::AMesh< Mesh >::intersect ( const Mesh ,
const Bevel  
)
inherited

Fusion a mesh b to this mesh with bevel.

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

Intersects mesh b and this mesh. Logical AND.

Mesh r = a & b;
See Also
intersect()
Mesh coat::scripto::AMesh< Mesh >::operator- ( const Mesh ) const
inherited

Subtract mesh b from this mesh.

Mesh r = a - b;
See Also
subtruct()
bool coat::scripto::Mesh::operator== ( const Mesh b) const
inline

Comparison.

Mesh a;
Mesh b;
...
if (a == b) { ... }

References coat::scripto::AMesh< T >::operator==().

bool coat::scripto::AMesh< Mesh >::operator== ( const AMesh< Mesh > &  b) const
inlineinherited

Comparison.

Mesh a;
Mesh b;
...
if (a == b) { ... }
Mesh coat::scripto::AMesh< Mesh >::operator| ( const Mesh ) const
inherited

Fusion two meshes to one mesh. Logical OR.

Mesh r = a | b;
See Also
add()
Mesh & coat::scripto::AMesh< Mesh >::position ( const Vec3 p)
inlineinherited

Setter for position.

Vec3 coat::scripto::AMesh< Mesh >::position ( ) const
inlineinherited

Getter for position.

Mesh & coat::scripto::AMesh< Mesh >::rotation ( const Angles a)
inlineinherited

Setter for rotation.

Angles coat::scripto::AMesh< Mesh >::rotation ( ) const
inlineinherited

Getter for rotation.

Mesh & coat::scripto::AMesh< Mesh >::subtruct ( const Mesh b)
inlineinherited

Fusion a mesh b to this mesh.

a.subtruct( b );

operator-()

Since
4.7.15
Mesh & coat::scripto::AMesh< Mesh >::subtruct ( const Mesh ,
const Bevel  
)
inherited

Fusion a mesh b to this mesh with bevel.

a.subtruct( b );
See Also
Bevel
Since
4.7.15
Mesh coat::scripto::AMesh< Mesh >::subtructCopy ( const Mesh b) const
inherited
See Also
subtruct( const Mesh& )
Since
4.7.15
Mesh coat::scripto::AMesh< Mesh >::subtructCopy ( const Mesh ,
const Bevel  
) const
inherited
Mesh & coat::scripto::AMesh< Mesh >::transform ( const Mat4 m)
inlineinherited

Setter for transform.

Mat4 coat::scripto::AMesh< Mesh >::transform ( ) const
inlineinherited

Getter for transform.


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