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::ToolsMeshTransform Class Reference

Access to transformation of mesh. More...

#include <SToolsMeshTransform.h>

Public Member Functions

 ToolsMeshTransform ()
 Create a transformation tool. More...
 
virtual void run () override
 Start a transformation! More...
 
ToolsMeshTransformposition (const Vec3 &c)
 Setter for position. More...
 
Vec3 position () const
 Getter for position. More...
 
ToolsMeshTransformrotation (const Angles &r)
 Setter for rotation. More...
 
Angles rotation () const
 Getter for rotation. More...
 
ToolsMeshTransformscale (const Vec3 &s)
 Setter for scale. More...
 
Vec3 scale () const
 Getter for scale. More...
 
void operator() ()
 run() More...
 

Detailed Description

Access to transformation of mesh.

SculptRoom sculpt;
// grab from named layer
// if absent then take current
Mesh a( "Layer A" );
auto transform = a.tools().transform();
// get & set & add to scene
const int N = 4;
for ( int i = 0; i < N; ++i ) {
const Vec3 translation = transform.position() + Vec3::rand( -48, 48 );
const Angles angles = transform.rotation() + Angles::rand( -48, 48 );
transform
.position( translation )
.rotation( angles )
();
sculpt += a;
}
+ Inheritance diagram for coat::scripto::ToolsMeshTransform:

Constructor & Destructor Documentation

coat::scripto::ToolsMeshTransform::ToolsMeshTransform ( )
inline

Create a transformation tool.

Member Function Documentation

void coat::scripto::ToolsX::operator() ( )
inlineinherited
ToolsMeshTransform & coat::scripto::ToolsMeshTransform::position ( const Vec3 c)

Setter for position.

Vec3 coat::scripto::ToolsMeshTransform::position ( ) const

Getter for position.

ToolsMeshTransform & coat::scripto::ToolsMeshTransform::rotation ( const Angles r)

Setter for rotation.

Angles coat::scripto::ToolsMeshTransform::rotation ( ) const

Getter for rotation.

void coat::scripto::ToolsMeshTransform::run ( )
overridevirtual

Start a transformation!

Implements coat::scripto::ToolsX.

ToolsMeshTransform & coat::scripto::ToolsMeshTransform::scale ( const Vec3 s)

Setter for scale.

Vec3 coat::scripto::ToolsMeshTransform::scale ( ) const

Getter for scale.


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