Rumba C++ SDK
maquina::MeshEdit Class Reference

MeshEdit provide tools to modify a mesh topology. More...

#include <MeshEdit.h>

Inheritance diagram for maquina::MeshEdit:
maquina::Value

Classes

struct  Corner
 

Public Member Functions

 MeshEdit (const Mesh &mesh)
 
int polygon_count () const
 
std::vector< int > polygons_by_edge (int v0, int v1) const
 
int polygon_count_by_edge (int v0, int v1) const
 
int polygon_vertex_count (int p) const
 
Corner polygon_vertex (int p, int i) const
 
int polygon_vertex_index (int p, int v) const
 
Corner polygon_next_vertex (int p, int v) const
 
Corner polygon_previous_vertex (int p, int v) const
 
void merge_polygons (int p0, int p1, int v0, int v1)
 
void merge_vertex (int dest, int src)
 
void delete_polygon (int p)
 
void set_vertex (int v, const Imath::V3f &p)
 
Corner new_vertex (const Corner &copy_corner, const Imath::V3f &p)
 
void rebuild_polyon (int p, const gsl::span< const Corner > &vertices)
 
int new_polyon (int original_polygon, const gsl::span< const Corner > &vertices)
 
Mesh make_mesh () const
 
- Public Member Functions inherited from maquina::Value
 Value ()
 
 Value (Value &&other)=default
 
 Value (const Value &other)=default
 
Valueoperator= (Value &&other)=default
 
Valueoperator= (const Value &other)=default
 
virtual ~Value ()=default
 
Value duplicate () const
 Duplicate the value. More...
 
bool as_bool () const
 Returns the value as a bool. More...
 
int as_int () const
 Returns the value as an integer. More...
 
float as_float () const
 Returns the value as a float. More...
 
double as_double () const
 Returns the value as a double. More...
 
const std::string & as_string () const
 Returns the value as a string. More...
 
std::wstring as_wstring () const
 Returns the value as a wstring. More...
 
Imath::V2f as_V2f () const
 Returns the value as a V2f. More...
 
Imath::V3f as_V3f () const
 Returns the value as a V3f. More...
 
Imath::V4f as_V4f () const
 Returns the value as a V4f. More...
 
const Imath::V2das_V2d () const
 Returns the value as a V2d. More...
 
const Imath::V3das_V3d () const
 Returns the value as a V3d. More...
 
const Imath::V4das_V4d () const
 Returns the value as a V4d. More...
 
const Imath::V2ias_V2i () const
 Returns the value as a V2i. More...
 
const Imath::V3ias_V3i () const
 Returns the value as a V3i. More...
 
const Imath::V4ias_V4i () const
 Returns the value as a V4i. More...
 
Imath::M44f as_M44f () const
 Returns the value as a M44f. More...
 
const Imath::M44das_M44d () const
 Returns the value as a M44d. More...
 
const Imath::Box3fas_Box3f () const
 Returns the value as a Box3f. More...
 
const Imath::Color4fas_Color4f () const
 Returns the value as a Color4f. More...
 
Imath::Quatf as_Quatf () const
 Returns the value as a Quatf. More...
 
const Imath::Quatdas_Quatd () const
 Returns the value as a Quatd. More...
 
std::shared_ptr< const UserDataas_user_data () const
 Returns the value as a user data. More...
 
StringView type_name () const
 Return the type name of the Value. More...
 
virtual bool has_node_delegate () const
 Check if this value can produces a NodeDelegate. More...
 
virtual std::shared_ptr< NodeDelegatenode_delegate (const std::shared_ptr< NodeDelegate > &parent, const StringView &name) const
 
bool operator== (const Value &o) const
 Compare the two values. More...
 
bool operator!= (const Value &o) const
 
bool is_instance (const char *value_type_name) const
 Check if this type derives from another value type. More...
 
 operator bool () const
 
 Value (bool)
 Create a boolean value. More...
 
 Value (int)
 Create an integer value. More...
 
 Value (float)
 Create a float value. More...
 
 Value (double)
 Create a double value (stored in a float right now) More...
 
 Value (const char *string)
 Create a string value. More...
 
 Value (const wchar_t *string)
 Create a string value. More...
 
 Value (const std::string &string)
 Create a string value. More...
 
 Value (const std::wstring &string)
 Create a wide string value. More...
 
 Value (const Imath::V2f &)
 Create a Imath::V2f value. More...
 
 Value (const Imath::V3f &)
 Create a Imath::V3f value. More...
 
 Value (const Imath::V4f &)
 Create a Imath::V4f value. More...
 
 Value (const Imath::V2d &)
 Create a Imath::V2d value. More...
 
 Value (const Imath::V3d &)
 Create a Imath::V3d value. More...
 
 Value (const Imath::V4d &)
 Create a Imath::V4d value. More...
 
 Value (const Imath::V2i &)
 Create a Imath::V2i value. More...
 
 Value (const Imath::V3i &)
 Create a Imath::V3i value. More...
 
 Value (const Imath::V4i &)
 Create a Imath::V4i value. More...
 
 Value (const Imath::Color4f &)
 Create a Imath::Color4f value. More...
 
 Value (const Imath::M44f &)
 Create a Imath::M44f value. More...
 
 Value (const Imath::M44d &)
 Create a Imath::M44d value. More...
 
 Value (const Imath::Box3f &)
 Create a Imath::Box3f value. More...
 
 Value (const Imath::Quatf &)
 Create a Imath::Quatf value. More...
 
 Value (const Imath::Quatd &)
 Create a Imath::Quatd value. More...
 
 Value (const std::shared_ptr< const UserData > &user_data)
 Create a user data value. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from maquina::Value
static bool validate_type_name (const char *type_name)
 Return true if the name is a valid type name. More...
 
static Value get_default_value (const char *type_name)
 Return a default value for a given type. More...
 
- Static Public Attributes inherited from maquina::Value
static const Value default_value
 The default value. More...
 

Detailed Description

MeshEdit provide tools to modify a mesh topology.

Constructor & Destructor Documentation

◆ MeshEdit()

maquina::MeshEdit::MeshEdit ( const Mesh mesh)

Member Function Documentation

◆ delete_polygon()

void maquina::MeshEdit::delete_polygon ( int  p)

◆ make_mesh()

Mesh maquina::MeshEdit::make_mesh ( ) const

◆ merge_polygons()

void maquina::MeshEdit::merge_polygons ( int  p0,
int  p1,
int  v0,
int  v1 
)

◆ merge_vertex()

void maquina::MeshEdit::merge_vertex ( int  dest,
int  src 
)

◆ new_polyon()

int maquina::MeshEdit::new_polyon ( int  original_polygon,
const gsl::span< const Corner > &  vertices 
)

◆ new_vertex()

Corner maquina::MeshEdit::new_vertex ( const Corner copy_corner,
const Imath::V3f p 
)

◆ polygon_count()

int maquina::MeshEdit::polygon_count ( ) const

◆ polygon_count_by_edge()

int maquina::MeshEdit::polygon_count_by_edge ( int  v0,
int  v1 
) const

◆ polygon_next_vertex()

Corner maquina::MeshEdit::polygon_next_vertex ( int  p,
int  v 
) const

◆ polygon_previous_vertex()

Corner maquina::MeshEdit::polygon_previous_vertex ( int  p,
int  v 
) const

◆ polygon_vertex()

Corner maquina::MeshEdit::polygon_vertex ( int  p,
int  i 
) const

◆ polygon_vertex_count()

int maquina::MeshEdit::polygon_vertex_count ( int  p) const

◆ polygon_vertex_index()

int maquina::MeshEdit::polygon_vertex_index ( int  p,
int  v 
) const

◆ polygons_by_edge()

std::vector<int> maquina::MeshEdit::polygons_by_edge ( int  v0,
int  v1 
) const

◆ rebuild_polyon()

void maquina::MeshEdit::rebuild_polyon ( int  p,
const gsl::span< const Corner > &  vertices 
)

◆ set_vertex()

void maquina::MeshEdit::set_vertex ( int  v,
const Imath::V3f p 
)

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