MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshSaveObj.h File Reference
#include <MRCMesh/MRAffineXf.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_VertColors MR_VertColors
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_ostream MR_std_ostream
 
typedef struct MR_std_shared_ptr_const_MR_Mesh MR_std_shared_ptr_const_MR_Mesh
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_MR_MeshSave_NamedXfMesh MR_std_vector_MR_MeshSave_NamedXfMesh
 
typedef struct MR_MeshSave_NamedXfMesh MR_MeshSave_NamedXfMesh
 

Functions

MRC_API const MR_std_stringMR_MeshSave_NamedXfMesh_Get_name (const MR_MeshSave_NamedXfMesh *_this)
 
MRC_API void MR_MeshSave_NamedXfMesh_Set_name (MR_MeshSave_NamedXfMesh *_this, const char *value, const char *value_end)
 
MRC_API MR_std_stringMR_MeshSave_NamedXfMesh_GetMutable_name (MR_MeshSave_NamedXfMesh *_this)
 
MRC_API const MR_AffineXf3fMR_MeshSave_NamedXfMesh_Get_toWorld (const MR_MeshSave_NamedXfMesh *_this)
 
MRC_API void MR_MeshSave_NamedXfMesh_Set_toWorld (MR_MeshSave_NamedXfMesh *_this, MR_AffineXf3f value)
 
MRC_API MR_AffineXf3fMR_MeshSave_NamedXfMesh_GetMutable_toWorld (MR_MeshSave_NamedXfMesh *_this)
 
MRC_API const MR_std_shared_ptr_const_MR_MeshMR_MeshSave_NamedXfMesh_Get_mesh (const MR_MeshSave_NamedXfMesh *_this)
 
MRC_API void MR_MeshSave_NamedXfMesh_Set_mesh (MR_MeshSave_NamedXfMesh *_this, MR_PassBy value_pass_by, MR_std_shared_ptr_const_MR_Mesh *value)
 
MRC_API MR_std_shared_ptr_const_MR_MeshMR_MeshSave_NamedXfMesh_GetMutable_mesh (MR_MeshSave_NamedXfMesh *_this)
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_DefaultConstruct (void)
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_ConstructFrom (const char *name, const char *name_end, MR_AffineXf3f toWorld, MR_PassBy mesh_pass_by, MR_std_shared_ptr_const_MR_Mesh *mesh)
 
MRC_API const MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_OffsetPtr (const MR_MeshSave_NamedXfMesh *ptr, ptrdiff_t i)
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_OffsetMutablePtr (MR_MeshSave_NamedXfMesh *ptr, ptrdiff_t i)
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MeshSave_NamedXfMesh *_other)
 
MRC_API void MR_MeshSave_NamedXfMesh_Destroy (const MR_MeshSave_NamedXfMesh *_this)
 Destroys a heap-allocated instance of MR_MeshSave_NamedXfMesh. Does nothing if the pointer is null.
 
MRC_API void MR_MeshSave_NamedXfMesh_DestroyArray (const MR_MeshSave_NamedXfMesh *_this)
 Destroys a heap-allocated array of MR_MeshSave_NamedXfMesh. Does nothing if the pointer is null.
 
MRC_API MR_MeshSave_NamedXfMeshMR_MeshSave_NamedXfMesh_AssignFromAnother (MR_MeshSave_NamedXfMesh *_this, MR_PassBy _other_pass_by, MR_MeshSave_NamedXfMesh *_other)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_sceneToObj_std_filesystem_path (const MR_std_vector_MR_MeshSave_NamedXfMesh *objects, const char *file, const char *file_end, MR_VertColors *colors)
 
MRC_API MR_expected_void_std_stringMR_MeshSave_sceneToObj_std_ostream (const MR_std_vector_MR_MeshSave_NamedXfMesh *objects, MR_std_ostream *out, MR_VertColors *colors)
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_MeshSave_NamedXfMesh

saves a number of named meshes in .obj file Generated from class MR::MeshSave::NamedXfMesh. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

◆ MR_std_ostream

◆ MR_std_shared_ptr_const_MR_Mesh

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_MR_MeshSave_NamedXfMesh

◆ MR_VertColors

typedef struct MR_VertColors MR_VertColors

Function Documentation

◆ MR_MeshSave_NamedXfMesh_AssignFromAnother()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_AssignFromAnother ( MR_MeshSave_NamedXfMesh * _this,
MR_PassBy _other_pass_by,
MR_MeshSave_NamedXfMesh * _other )

Generated from method MR::MeshSave::NamedXfMesh::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_MeshSave_NamedXfMesh_ConstructFrom()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_ConstructFrom ( const char * name,
const char * name_end,
MR_AffineXf3f toWorld,
MR_PassBy mesh_pass_by,
MR_std_shared_ptr_const_MR_Mesh * mesh )

Constructs MR::MeshSave::NamedXfMesh elementwise. Parameter name can not be null. If name_end is null, then name is assumed to be null-terminated. The reference to the parameter name might be preserved in the constructed object. The reference to the parameter toWorld might be preserved in the constructed object. The reference to the parameter mesh might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshSave_NamedXfMesh_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.

◆ MR_MeshSave_NamedXfMesh_ConstructFromAnother()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MeshSave_NamedXfMesh * _other )

Generated from constructor MR::MeshSave::NamedXfMesh::NamedXfMesh. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshSave_NamedXfMesh_Destroy() to free it when you're done using it.

◆ MR_MeshSave_NamedXfMesh_DefaultConstruct()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshSave_NamedXfMesh_Destroy() to free it when you're done using it.

◆ MR_MeshSave_NamedXfMesh_DefaultConstructArray()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_MeshSave_NamedXfMesh_DestroyArray(). Use MR_MeshSave_NamedXfMesh_OffsetMutablePtr() and MR_MeshSave_NamedXfMesh_OffsetPtr() to access the array elements.

◆ MR_MeshSave_NamedXfMesh_Destroy()

MRC_API void MR_MeshSave_NamedXfMesh_Destroy ( const MR_MeshSave_NamedXfMesh * _this)

Destroys a heap-allocated instance of MR_MeshSave_NamedXfMesh. Does nothing if the pointer is null.

◆ MR_MeshSave_NamedXfMesh_DestroyArray()

MRC_API void MR_MeshSave_NamedXfMesh_DestroyArray ( const MR_MeshSave_NamedXfMesh * _this)

Destroys a heap-allocated array of MR_MeshSave_NamedXfMesh. Does nothing if the pointer is null.

◆ MR_MeshSave_NamedXfMesh_Get_mesh()

MRC_API const MR_std_shared_ptr_const_MR_Mesh * MR_MeshSave_NamedXfMesh_Get_mesh ( const MR_MeshSave_NamedXfMesh * _this)

Returns a pointer to a member variable of class MR::MeshSave::NamedXfMesh named mesh. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_Get_name()

MRC_API const MR_std_string * MR_MeshSave_NamedXfMesh_Get_name ( const MR_MeshSave_NamedXfMesh * _this)

Returns a pointer to a member variable of class MR::MeshSave::NamedXfMesh named name. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_Get_toWorld()

MRC_API const MR_AffineXf3f * MR_MeshSave_NamedXfMesh_Get_toWorld ( const MR_MeshSave_NamedXfMesh * _this)

Returns a pointer to a member variable of class MR::MeshSave::NamedXfMesh named toWorld. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_GetMutable_mesh()

MRC_API MR_std_shared_ptr_const_MR_Mesh * MR_MeshSave_NamedXfMesh_GetMutable_mesh ( MR_MeshSave_NamedXfMesh * _this)

Returns a mutable pointer to a member variable of class MR::MeshSave::NamedXfMesh named mesh. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_GetMutable_name()

MRC_API MR_std_string * MR_MeshSave_NamedXfMesh_GetMutable_name ( MR_MeshSave_NamedXfMesh * _this)

Returns a mutable pointer to a member variable of class MR::MeshSave::NamedXfMesh named name. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_GetMutable_toWorld()

MRC_API MR_AffineXf3f * MR_MeshSave_NamedXfMesh_GetMutable_toWorld ( MR_MeshSave_NamedXfMesh * _this)

Returns a mutable pointer to a member variable of class MR::MeshSave::NamedXfMesh named toWorld. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_MeshSave_NamedXfMesh_OffsetMutablePtr()

MRC_API MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_OffsetMutablePtr ( MR_MeshSave_NamedXfMesh * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_MeshSave_NamedXfMesh_OffsetPtr()

MRC_API const MR_MeshSave_NamedXfMesh * MR_MeshSave_NamedXfMesh_OffsetPtr ( const MR_MeshSave_NamedXfMesh * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_MeshSave_NamedXfMesh_Set_mesh()

MRC_API void MR_MeshSave_NamedXfMesh_Set_mesh ( MR_MeshSave_NamedXfMesh * _this,
MR_PassBy value_pass_by,
MR_std_shared_ptr_const_MR_Mesh * value )

Modifies a member variable of class MR::MeshSave::NamedXfMesh named mesh. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element mesh. When this function is called, this object will drop object references it had previously in mesh.

◆ MR_MeshSave_NamedXfMesh_Set_name()

MRC_API void MR_MeshSave_NamedXfMesh_Set_name ( MR_MeshSave_NamedXfMesh * _this,
const char * value,
const char * value_end )

Modifies a member variable of class MR::MeshSave::NamedXfMesh named name. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element name. When this function is called, this object will drop object references it had previously in name.

◆ MR_MeshSave_NamedXfMesh_Set_toWorld()

MRC_API void MR_MeshSave_NamedXfMesh_Set_toWorld ( MR_MeshSave_NamedXfMesh * _this,
MR_AffineXf3f value )

Modifies a member variable of class MR::MeshSave::NamedXfMesh named toWorld. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element toWorld. When this function is called, this object will drop object references it had previously in toWorld.

◆ MR_MeshSave_sceneToObj_std_filesystem_path()

MRC_API MR_expected_void_std_string * MR_MeshSave_sceneToObj_std_filesystem_path ( const MR_std_vector_MR_MeshSave_NamedXfMesh * objects,
const char * file,
const char * file_end,
MR_VertColors * colors )

Generated from function MR::MeshSave::sceneToObj. Parameter objects can not be null. It is a single object. Parameter file is a UTF-8 encoded filesystem path. Parameter colors defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_MeshSave_sceneToObj_std_ostream()

MRC_API MR_expected_void_std_string * MR_MeshSave_sceneToObj_std_ostream ( const MR_std_vector_MR_MeshSave_NamedXfMesh * objects,
MR_std_ostream * out,
MR_VertColors * colors )

Generated from function MR::MeshSave::sceneToObj. Parameter objects can not be null. It is a single object. Parameter out can not be null. It is a single object. Parameter colors defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.