MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectMesh.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMesh/MRBox.h>
5#include <MRCMesh/MREnums.h>
7#include <MRCMisc/common.h>
8#include <MRCMisc/exports.h>
9
10#include <stdbool.h>
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
18typedef struct MR_Color MR_Color; // Defined in `#include <MRCMesh/MRColor.h>`.
19typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
20typedef struct MR_FaceColors MR_FaceColors; // Defined in `#include <MRCMesh/MRVector.h>`.
21typedef struct MR_FaceMap MR_FaceMap; // Defined in `#include <MRCMesh/MRVector.h>`.
22typedef struct MR_Line3f MR_Line3f; // Defined in `#include <MRCMesh/MRLine.h>`.
23typedef struct MR_MeshIntersectionResult MR_MeshIntersectionResult; // Defined in `#include <MRCMesh/MRMeshIntersect.h>`.
24typedef struct MR_MeshPart MR_MeshPart; // Defined in `#include <MRCMesh/MRMeshPart.h>`.
25typedef struct MR_MeshTexture MR_MeshTexture; // Defined in `#include <MRCMesh/MRMeshTexture.h>`.
26typedef struct MR_ModelBaseRenderParams MR_ModelBaseRenderParams; // Defined in `#include <MRCMesh/MRIRenderObject.h>`.
27typedef struct MR_ModelRenderParams MR_ModelRenderParams; // Defined in `#include <MRCMesh/MRIRenderObject.h>`.
28typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
29typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
30typedef struct MR_ObjectMeshData MR_ObjectMeshData; // Defined in `#include <MRCMesh/MRObjectMeshData.h>`.
31typedef struct MR_ObjectMeshHolder MR_ObjectMeshHolder; // Defined in `#include <MRCMesh/MRObjectMeshHolder.h>`.
32typedef struct MR_TexturePerFace MR_TexturePerFace; // Defined in `#include <MRCMesh/MRVector.h>`.
33typedef struct MR_UiRenderParams MR_UiRenderParams; // Defined in `#include <MRCMesh/MRIRenderObject.h>`.
34typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
35typedef struct MR_Vector_MR_MeshTexture_MR_TextureId MR_Vector_MR_MeshTexture_MR_TextureId; // Defined in `#include <MRCMesh/MRVector.h>`.
36typedef struct MR_VertColors MR_VertColors; // Defined in `#include <MRCMesh/MRVector.h>`.
37typedef struct MR_VertCoords2 MR_VertCoords2; // Defined in `#include <MRCMesh/MRVector.h>`.
38typedef struct MR_VertMap MR_VertMap; // Defined in `#include <MRCMesh/MRVector.h>`.
39typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
40typedef struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
41typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
42typedef struct MR_ViewportProperty_unsigned_char MR_ViewportProperty_unsigned_char; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
43typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
44typedef struct MR_std_set_std_string MR_std_set_std_string; // Defined in `#include <MRCMisc/std_set_std_string.h>`.
45typedef struct MR_std_shared_ptr_MR_Mesh MR_std_shared_ptr_MR_Mesh; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Mesh.h>`.
46typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
47typedef struct MR_std_shared_ptr_MR_ObjectMesh MR_std_shared_ptr_MR_ObjectMesh; // Defined in `#include <MRCMisc/std_shared_ptr_MR_ObjectMesh.h>`.
48typedef struct MR_std_shared_ptr_const_MR_Mesh MR_std_shared_ptr_const_MR_Mesh; // Defined in `#include <MRCMisc/std_shared_ptr_const_MR_Mesh.h>`.
49typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
50typedef struct MR_std_vector_MR_AffineXf3f MR_std_vector_MR_AffineXf3f; // Defined in `#include <MRCMisc/std_vector_MR_AffineXf3f.h>`.
51typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask; // Defined in `#include <MRCMisc/std_vector_MR_ViewportMask.h>`.
52typedef struct MR_std_vector_std_shared_ptr_MR_ObjectMesh MR_std_vector_std_shared_ptr_MR_ObjectMesh; // Defined in `#include <MRCMisc/std_vector_std_shared_ptr_MR_ObjectMesh.h>`.
53typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
54
55
67
72
76
81
84
87
91
94
98
101
105
108
112
115
119
122
125
130
133
137
140
145
148
153
159
164
171
176
181
186
190MRC_API void MR_ObjectMesh_setDirtyFlags(MR_ObjectMesh *_this, unsigned int mask, const bool *invalidateCaches);
191
201
204MRC_API void MR_ObjectMesh_applyScale(MR_ObjectMesh *_this, float scaleFactor);
205
210
214
219
225
230
233MRC_API void MR_ObjectMesh_selectFaces(MR_ObjectMesh *_this, MR_PassBy newSelection_pass_by, MR_FaceBitSet *newSelection);
234
241
248
253
256MRC_API void MR_ObjectMesh_selectEdges(MR_ObjectMesh *_this, MR_PassBy newSelection_pass_by, MR_UndirectedEdgeBitSet *newSelection);
257
264
271
276
280
285
289
294
298
303
307
312
316
322
328
332
337
341
346
352
359
365
373
379
385
389MRC_API void MR_ObjectMesh_setVertsColorMap(MR_ObjectMesh *_this, MR_PassBy vertsColorMap_pass_by, MR_VertColors *vertsColorMap);
390
396
401
404MRC_API void MR_ObjectMesh_setFacesColorMap(MR_ObjectMesh *_this, MR_PassBy facesColorMap_pass_by, MR_FaceColors *facesColorMap);
405
410
414
418
422
426
432
438
444
450
456
462
468
473
477
482
487MRC_API void MR_ObjectMesh_setTexturePerFace(MR_ObjectMesh *_this, MR_PassBy texturePerFace_pass_by, MR_TexturePerFace *texturePerFace);
488
493
497
502
507
510MRC_API void MR_ObjectMesh_setUVCoords(MR_ObjectMesh *_this, MR_PassBy uvCoordinates_pass_by, MR_VertCoords2 *uvCoordinates);
511
516
524MRC_API void MR_ObjectMesh_copyTextureAndColors(MR_ObjectMesh *_this, const MR_ObjectMeshHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces);
525
533MRC_API void MR_ObjectMesh_copyColors(MR_ObjectMesh *_this, const MR_ObjectMeshHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces);
534
535// ancillary texture can be used to have custom features visualization without affecting real one
540
544
549
552MRC_API void MR_ObjectMesh_setAncillaryUVCoords(MR_ObjectMesh *_this, MR_PassBy uvCoordinates_pass_by, MR_VertCoords2 *uvCoordinates);
553
558
562
566
572
576MRC_API bool MR_ObjectMesh_getRedrawFlag(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask);
577
582
589
594
599
604
609
614
619
624
629
634
639
644
649
654
659
664MRC_API void MR_ObjectMesh_setSerializeFormat(MR_ObjectMesh *_this, const char *newFormat);
665
670
675
679
684
690MRC_API void MR_ObjectMesh_setVisualizeProperty(MR_ObjectMesh *_this, bool value, const MR_AnyVisualizeMaskEnum *type, const MR_ViewportMask *viewportMask);
691
698
705
712
718
724
731
738
745MRC_API const MR_Color *MR_ObjectMesh_getFrontColor(const MR_ObjectMesh *_this, const bool *selected, const MR_ViewportId *viewportId);
746
752MRC_API void MR_ObjectMesh_setFrontColor(MR_ObjectMesh *_this, const MR_Color *color, bool selected, const MR_ViewportId *viewportId);
753
760
766
772
777
784
790MRC_API void MR_ObjectMesh_setBackColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *viewportId);
791
797MRC_API const unsigned char *MR_ObjectMesh_getGlobalAlpha(const MR_ObjectMesh *_this, const MR_ViewportId *viewportId);
798
803MRC_API void MR_ObjectMesh_setGlobalAlpha(MR_ObjectMesh *_this, unsigned char alpha, const MR_ViewportId *viewportId);
804
810
815
820
825
829MRC_API void MR_ObjectMesh_resetDirtyExceptMask(const MR_ObjectMesh *_this, unsigned int mask);
830
835
841MRC_API bool MR_ObjectMesh_isPickable(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask);
842
848MRC_API void MR_ObjectMesh_setPickable(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask);
849
854
859
864
869
874
878MRC_API void MR_ObjectMesh_setSpecularStrength(MR_ObjectMesh *_this, float specularStrength);
879
884
888MRC_API void MR_ObjectMesh_setAmbientStrength(MR_ObjectMesh *_this, float ambientStrength);
889
896
902
908
914
919MRC_API void MR_ObjectMesh_setUseDefaultScenePropertiesOnDeserialization(MR_ObjectMesh *_this, bool useDefaultScenePropertiesOnDeserialization);
920
925
930MRC_API void MR_ObjectMesh_setName(MR_ObjectMesh *_this, const char *name, const char *name_end);
931
939MRC_API const MR_AffineXf3f *MR_ObjectMesh_xf(const MR_ObjectMesh *_this, const MR_ViewportId *id, bool *isDef);
940
946
952
958
963
971
977
983
990
997
1002
1006
1012
1016
1020MRC_API bool MR_ObjectMesh_isAncestor(const MR_ObjectMesh *_this, const MR_Object *ancestor);
1021
1027
1035MRC_API bool MR_ObjectMesh_addChild(MR_ObjectMesh *_this, MR_PassBy child_pass_by, MR_std_shared_ptr_MR_Object *child, const bool *recognizedChild);
1036
1044
1049
1054
1059
1063
1069
1073
1078
1084MRC_API void MR_ObjectMesh_setVisible(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask);
1085
1091MRC_API bool MR_ObjectMesh_isVisible(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask);
1092
1098
1104
1108
1114
1121
1129
1136
1143
1151MRC_API bool MR_ObjectMesh_addTag(MR_ObjectMesh *_this, const char *tag, const char *tag_end);
1152
1159MRC_API bool MR_ObjectMesh_removeTag(MR_ObjectMesh *_this, const char *tag, const char *tag_end);
1160
1161// returns this Object as shared_ptr
1162// finds it among its parent's recognized children
1167
1173
1178
1184
1188
1193
1197
1200
1203
1208
1211
1214
1220
1228
1237
1238#ifdef __cplusplus
1239} // extern "C"
1240#endif
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:28
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_MeshPart MR_MeshPart
Definition MRAABBTree.h:19
struct MR_ModelBaseRenderParams MR_ModelBaseRenderParams
Definition MRAddVisualPropertiesMixin.h:26
struct MR_ViewportProperty_unsigned_char MR_ViewportProperty_unsigned_char
Definition MRAddVisualPropertiesMixin.h:35
struct MR_VisualObject MR_VisualObject
Definition MRAddVisualPropertiesMixin.h:36
struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum
Definition MRAddVisualPropertiesMixin.h:19
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:32
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAddVisualPropertiesMixin.h:39
struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:42
struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color
Definition MRAddVisualPropertiesMixin.h:34
struct MR_ModelRenderParams MR_ModelRenderParams
Definition MRAddVisualPropertiesMixin.h:27
struct MR_std_set_std_string MR_std_set_std_string
Definition MRAddVisualPropertiesMixin.h:38
struct MR_UiRenderParams MR_UiRenderParams
Definition MRAddVisualPropertiesMixin.h:31
struct MR_ViewportProperty_MR_AffineXf3f MR_ViewportProperty_MR_AffineXf3f
Definition MRAddVisualPropertiesMixin.h:33
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:29
struct MR_Line3f MR_Line3f
Definition MRBestFit.h:17
struct MR_VertMap MR_VertMap
Definition MRBitSet.h:40
struct MR_FaceMap MR_FaceMap
Definition MRBitSet.h:26
struct MR_FaceColors MR_FaceColors
Definition MRChangeColoringActions.h:13
struct MR_std_shared_ptr_MR_Mesh MR_std_shared_ptr_MR_Mesh
Definition MRChangeMeshAction.h:19
struct MR_TexturePerFace MR_TexturePerFace
Definition MRChangeMeshAction.h:15
struct MR_Vector_MR_MeshTexture_MR_TextureId MR_Vector_MR_MeshTexture_MR_TextureId
Definition MRChangeMeshAction.h:16
struct MR_std_shared_ptr_MR_ObjectMesh MR_std_shared_ptr_MR_ObjectMesh
Definition MRChangeMeshAction.h:20
struct MR_ObjectMeshData MR_ObjectMeshData
Definition MRChangeMeshDataAction.h:15
struct MR_VertColors MR_VertColors
Definition MRCtm.h:22
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_MeshTexture MR_MeshTexture
Definition MRCtm.h:18
struct MR_VertCoords2 MR_VertCoords2
Definition MRCtm.h:23
MR_ColoringType
Definition MREnums.h:86
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_ObjectMesh MR_ObjectMesh
Definition MRMeshBooleanFacade.h:14
struct MR_MeshIntersectionResult MR_MeshIntersectionResult
Definition MRMeshIntersect.h:42
struct MR_std_shared_ptr_const_MR_Mesh MR_std_shared_ptr_const_MR_Mesh
Definition MRMeshSaveObj.h:16
MRC_API void MR_ObjectMesh_setTextures(MR_ObjectMesh *_this, MR_PassBy texture_pass_by, MR_Vector_MR_MeshTexture_MR_TextureId *texture)
MRC_API const MR_AffineXf3f * MR_ObjectMesh_xf(const MR_ObjectMesh *_this, const MR_ViewportId *id, bool *isDef)
MRC_API void MR_ObjectMesh_selectEdges(MR_ObjectMesh *_this, MR_PassBy newSelection_pass_by, MR_UndirectedEdgeBitSet *newSelection)
MRC_API MR_uint64_t MR_ObjectMesh_heapBytes(const MR_ObjectMesh *_this)
MRC_API float MR_ObjectMesh_getShininess(const MR_ObjectMesh *_this)
MRC_API const MR_std_shared_ptr_const_MR_Mesh * MR_ObjectMesh_mesh(const MR_ObjectMesh *_this)
MRC_API MR_std_shared_ptr_MR_Mesh * MR_ObjectMesh_updateMesh(MR_ObjectMesh *_this, MR_PassBy mesh_pass_by, MR_std_shared_ptr_MR_Mesh *mesh)
MRC_API float MR_ObjectMesh_getSpecularStrength(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_isAncestor(const MR_ObjectMesh *_this, const MR_Object *ancestor)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getSelectedFacesColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectMesh_shallowCloneTree(const MR_ObjectMesh *_this)
MRC_API const MR_std_vector_MR_AffineXf3f *const * MR_ObjectMeshMergeOptions_Get_overrideXfs(const MR_ObjectMeshMergeOptions *_this)
MRC_API void MR_ObjectMesh_setMesh(MR_ObjectMesh *_this, MR_PassBy mesh_pass_by, MR_std_shared_ptr_MR_Mesh *mesh)
MRC_API MR_std_string * MR_ObjectMesh_className(const MR_ObjectMesh *_this)
MRC_API const MR_std_vector_MR_AffineXf3f ** MR_ObjectMeshMergeOptions_GetMutable_overrideXfs(MR_ObjectMeshMergeOptions *_this)
MRC_API void MR_ObjectMesh_setBordersColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API void MR_ObjectMesh_setColoringType(MR_ObjectMesh *_this, MR_ColoringType coloringType)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getFrontColorsForAllViewports(const MR_ObjectMesh *_this, const bool *selected)
MRC_API bool MR_ObjectMesh_globalVisibility(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
struct MR_std_vector_MR_AffineXf3f MR_std_vector_MR_AffineXf3f
Definition MRObjectMesh.h:50
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_DefaultConstructArray(size_t num_elems)
MRC_API void MR_ObjectMesh_setBackColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *viewportId)
MRC_API void MR_ObjectMesh_setGlobalAlphaForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_unsigned_char *val)
MRC_API MR_ViewportMask * MR_ObjectMesh_globalClippedByPlaneMask(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setPointsColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API MR_ViewportMask * MR_ObjectMesh_globalVisibilityMask(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMesh * MR_ObjectMesh_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ObjectMesh *_other)
MRC_API void MR_ObjectMesh_setDirtyFlags(MR_ObjectMesh *_this, unsigned int mask, const bool *invalidateCaches)
MRC_API bool MR_ObjectMesh_getVisualizeProperty(const MR_ObjectMesh *_this, const MR_AnyVisualizeMaskEnum *type, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setFlatShading(MR_ObjectMesh *_this, bool on)
MRC_API const MR_ObjectMeshData * MR_ObjectMesh_data(const MR_ObjectMesh *_this)
MRC_API const MR_VertColors * MR_ObjectMesh_getVertsColorMap(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setPickable(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API const MR_Color * MR_ObjectMesh_getFrontColor(const MR_ObjectMesh *_this, const bool *selected, const MR_ViewportId *viewportId)
MRC_API void MR_ObjectMesh_Destroy(const MR_ObjectMesh *_this)
Destroys a heap-allocated instance of MR_ObjectMesh. Does nothing if the pointer is null.
MRC_API void MR_ObjectMesh_setSelectedEdgesColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API const MR_VertCoords2 * MR_ObjectMesh_getAncillaryUVCoords(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_DefaultConstruct(void)
MRC_API const MR_Color * MR_ObjectMesh_getSelectedEdgesColor(const MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API void MR_ObjectMesh_setGlobalVisibility(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setAncillary(MR_ObjectMesh *_this, bool ancillary)
MRC_API bool MR_ObjectMesh_removeTag(MR_ObjectMesh *_this, const char *tag, const char *tag_end)
MRC_API const MR_ViewportProperty_unsigned_char * MR_ObjectMesh_getGlobalAlphaForAllViewports(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setXf(MR_ObjectMesh *_this, const MR_AffineXf3f *xf, const MR_ViewportId *id)
MRC_API MR_Object * MR_ObjectMesh_MutableUpcastTo_MR_Object(MR_ObjectMesh *object)
Upcasts an instance of MR::ObjectMesh to its base class MR::Object.
MRC_API double MR_ObjectMesh_totalArea(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_addChildBefore(MR_ObjectMesh *_this, MR_PassBy newChild_pass_by, MR_std_shared_ptr_MR_Object *newChild, const MR_std_shared_ptr_MR_Object *existingChild)
MRC_API MR_AffineXf3f MR_ObjectMesh_worldXf(const MR_ObjectMesh *_this, const MR_ViewportId *id, bool *isDef)
MRC_API void MR_ObjectMesh_setFacesColorMap(MR_ObjectMesh *_this, MR_PassBy facesColorMap_pass_by, MR_FaceColors *facesColorMap)
MRC_API const MR_UndirectedEdgeBitSet * MR_ObjectMesh_getSelectedEdges(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_sortChildren(MR_ObjectMesh *_this)
MRC_API MR_Box3f MR_ObjectMesh_getWorldBox(const MR_ObjectMesh *_this, const MR_ViewportId *_1)
MRC_API const MR_Vector_MR_MeshTexture_MR_TextureId * MR_ObjectMesh_getTextures(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setAncillaryUVCoords(MR_ObjectMesh *_this, MR_PassBy uvCoordinates_pass_by, MR_VertCoords2 *uvCoordinates)
MRC_API bool MR_ObjectMesh_hasModel(const MR_ObjectMesh *_this)
MRC_API const MR_ObjectChildrenHolder * MR_ObjectMesh_UpcastTo_MR_ObjectChildrenHolder(const MR_ObjectMesh *object)
MRC_API void MR_ObjectMesh_setFrontColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val, const bool *selected)
MRC_API void MR_ObjectMesh_toggleVisualizeProperty(MR_ObjectMesh *_this, const MR_AnyVisualizeMaskEnum *type, const MR_ViewportMask *viewportMask)
struct MR_std_vector_std_shared_ptr_MR_ObjectMesh MR_std_vector_std_shared_ptr_MR_ObjectMesh
Definition MRObjectMesh.h:52
MRC_API void MR_ObjectMesh_setVertsColorMap(MR_ObjectMesh *_this, MR_PassBy vertsColorMap_pass_by, MR_VertColors *vertsColorMap)
MRC_API MR_uint64_t MR_ObjectMesh_numHoles(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setVisibilityMask(MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_clearAncillaryTexture(MR_ObjectMesh *_this)
MRC_API MR_Box3f MR_ObjectMesh_getWorldTreeBox(const MR_ObjectMesh *_this, const MR_ViewportId *_1)
MRC_API MR_uint64_t MR_ObjectMesh_numSelectedFaces(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setPointSize(MR_ObjectMesh *_this, float size)
MRC_API bool MR_ObjectMesh_isLocked(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setSerializeFormat(MR_ObjectMesh *_this, const char *newFormat)
MRC_API void MR_ObjectMesh_resetColors(MR_ObjectMesh *_this)
MRC_API MR_ColoringType MR_ObjectMesh_getColoringType(const MR_ObjectMesh *_this)
MRC_API MR_uint64_t MR_ObjectMesh_getModelHash(const MR_ObjectMesh *_this)
MRC_API const MR_TexturePerFace * MR_ObjectMesh_getTexturePerFace(const MR_ObjectMesh *_this)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getBackColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_addChild(MR_ObjectMesh *_this, MR_PassBy child_pass_by, MR_std_shared_ptr_MR_Object *child, const bool *recognizedChild)
MRC_API void MR_ObjectMesh_copyAllSolidColors(MR_ObjectMesh *_this, const MR_ObjectMeshHolder *other)
MRC_API void MR_ObjectMesh_setCreases(MR_ObjectMesh *_this, MR_PassBy creases_pass_by, MR_UndirectedEdgeBitSet *creases)
MRC_API void MR_ObjectMesh_setEdgesColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectMesh_clone(const MR_ObjectMesh *_this)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getSelectedEdgesColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API unsigned int MR_ObjectMesh_getNeededNormalsRenderDirtyValue(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API bool MR_ObjectMesh_getRedrawFlag(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setGlobalClippedByPlane(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_renderForPicker(const MR_ObjectMesh *_this, const MR_ModelBaseRenderParams *_1, unsigned int _2)
MRC_API void MR_ObjectMesh_copyTextureAndColors(MR_ObjectMesh *_this, const MR_ObjectMeshHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getPointsColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setUVCoords(MR_ObjectMesh *_this, MR_PassBy uvCoordinates_pass_by, MR_VertCoords2 *uvCoordinates)
MRC_API MR_ObjectMesh * MR_ObjectMesh_DefaultConstruct(void)
MRC_API void MR_ObjectMesh_updateAncillaryUVCoords(MR_ObjectMesh *_this, MR_VertCoords2 *updated)
MRC_API MR_MeshPart * MR_ObjectMesh_meshPart(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_swap(MR_ObjectMesh *_this, MR_Object *other)
MRC_API void MR_ObjectMesh_updateFacesColorMap(MR_ObjectMesh *_this, MR_FaceColors *updated)
MRC_API void MR_ObjectMesh_setName(MR_ObjectMesh *_this, const char *name, const char *name_end)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectMesh_shallowClone(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMeshHolder * MR_ObjectMesh_MutableUpcastTo_MR_ObjectMeshHolder(MR_ObjectMesh *object)
Upcasts an instance of MR::ObjectMesh to its base class MR::ObjectMeshHolder.
MRC_API void MR_ObjectMesh_updateData(MR_ObjectMesh *_this, MR_ObjectMeshData *data)
MRC_API void MR_ObjectMesh_setVisualizePropertyMask(MR_ObjectMesh *_this, const MR_AnyVisualizeMaskEnum *type, const MR_ViewportMask *viewportMask)
MRC_API bool MR_ObjectMesh_detachFromParent(MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setSelectedFacesColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API const MR_Color * MR_ObjectMesh_getBackColor(const MR_ObjectMesh *_this, const MR_ViewportId *viewportId)
MRC_API void MR_ObjectMesh_setPointsColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API const MR_FaceColors * MR_ObjectMesh_getFacesColorMap(const MR_ObjectMesh *_this)
MRC_API MR_MeshIntersectionResult * MR_ObjectMesh_worldRayIntersection(const MR_ObjectMesh *_this, const MR_Line3f *worldRay, const MR_FaceBitSet *region)
MRC_API void MR_ObjectMesh_resetRedrawFlag(const MR_ObjectMesh *_this)
MRC_API float MR_ObjectMesh_getAmbientStrength(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setShininess(MR_ObjectMesh *_this, float shininess)
MRC_API const MR_MeshTexture * MR_ObjectMesh_getAncillaryTexture(const MR_ObjectMesh *_this)
MRC_API const char * MR_ObjectMesh_typeName(const MR_ObjectMesh *_this)
MRC_API const MR_ViewportProperty_MR_AffineXf3f * MR_ObjectMesh_xfsForAllViewports(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMesh * MR_ObjectMesh_AssignFromAnother(MR_ObjectMesh *_this, MR_PassBy _other_pass_by, MR_ObjectMesh *_other)
MRC_API void MR_ObjectMesh_copyColors(MR_ObjectMesh *_this, const MR_ObjectMeshHolder *src, const MR_VertMap *thisToSrc, const MR_FaceMap *thisToSrcFaces)
MRC_API bool MR_ObjectMesh_hasVisualRepresentation(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_sameModels(const MR_ObjectMesh *_this, const MR_Object *other)
MRC_API bool MR_ObjectMesh_isSelected(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setAmbientStrength(MR_ObjectMesh *_this, float ambientStrength)
MRC_API void MR_ObjectMesh_resetFrontColor(MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setBackColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API MR_std_string * MR_ObjectMesh_classNameInPlural(const MR_ObjectMesh *_this)
struct MR_ObjectMeshMergeOptions MR_ObjectMeshMergeOptions
Definition MRObjectMesh.h:71
MRC_API void MR_ObjectMesh_removeAllChildren(MR_ObjectMesh *_this)
MRC_API const MR_FaceBitSet * MR_ObjectMesh_getSelectedFaces(const MR_ObjectMesh *_this)
MRC_API MR_uint64_t MR_ObjectMesh_numCreaseEdges(const MR_ObjectMesh *_this)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getEdgesColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMeshMergeOptions_DestroyArray(const MR_ObjectMeshMergeOptions *_this)
Destroys a heap-allocated array of MR_ObjectMeshMergeOptions. Does nothing if the pointer is null.
MRC_API void MR_ObjectMesh_setBordersColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API void MR_ObjectMesh_applyScale(MR_ObjectMesh *_this, float scaleFactor)
MRC_API void MR_ObjectMeshMergeOptions_Set_overrideXfs(MR_ObjectMeshMergeOptions *_this, const MR_std_vector_MR_AffineXf3f *value)
MRC_API void MR_ObjectMesh_addTexture(MR_ObjectMesh *_this, MR_PassBy texture_pass_by, MR_MeshTexture *texture)
MRC_API void MR_ObjectMesh_resetDirty(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setVisible(MR_ObjectMesh *_this, bool on, const MR_ViewportMask *viewportMask)
MRC_API MR_std_shared_ptr_MR_ObjectMesh * MR_cloneRegion_3(const MR_std_shared_ptr_MR_ObjectMesh *objMesh, const MR_FaceBitSet *region, const bool *copyTexture)
MRC_API bool MR_ObjectMesh_globalClippedByPlane(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API const MR_Color * MR_ObjectMesh_getSelectedFacesColor(const MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API void MR_ObjectMeshMergeOptions_Destroy(const MR_ObjectMeshMergeOptions *_this)
Destroys a heap-allocated instance of MR_ObjectMeshMergeOptions. Does nothing if the pointer is null.
MRC_API void MR_ObjectMesh_setEdgesColorsForAllViewports(MR_ObjectMesh *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_ConstructFrom(const MR_std_vector_MR_AffineXf3f *overrideXfs)
MRC_API void MR_ObjectMesh_updateTextures(MR_ObjectMesh *_this, MR_Vector_MR_MeshTexture_MR_TextureId *updated)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectMesh_getBordersColorsForAllViewports(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_AssignFromAnother(MR_ObjectMeshMergeOptions *_this, const MR_ObjectMeshMergeOptions *_other)
MRC_API MR_VisualObject * MR_ObjectMesh_MutableUpcastTo_MR_VisualObject(MR_ObjectMesh *object)
Upcasts an instance of MR::ObjectMesh to its base class MR::VisualObject.
MRC_API bool MR_ObjectMesh_isMeshClosed(const MR_ObjectMesh *_this)
MRC_API const char * MR_ObjectMesh_serializeFormat(const MR_ObjectMesh *_this)
MRC_API MR_uint64_t MR_ObjectMesh_numHandles(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_isVisible(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setTexturePerFace(MR_ObjectMesh *_this, MR_PassBy texturePerFace_pass_by, MR_TexturePerFace *texturePerFace)
MRC_API void MR_ObjectMesh_setWorldXf(MR_ObjectMesh *_this, const MR_AffineXf3f *xf, const MR_ViewportId *id)
MRC_API const MR_ViewportMask * MR_ObjectMesh_getVisualizePropertyMask(const MR_ObjectMesh *_this, const MR_AnyVisualizeMaskEnum *type)
MRC_API void MR_ObjectMesh_updateVertsColorMap(MR_ObjectMesh *_this, MR_VertColors *vertsColorMap)
MRC_API bool MR_ObjectMesh_hasAncillaryTexture(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_addTag(MR_ObjectMesh *_this, const char *tag, const char *tag_end)
MRC_API void MR_ObjectMesh_setAllVisualizeProperties(MR_ObjectMesh *_this, const MR_std_vector_MR_ViewportMask *properties)
MRC_API bool MR_ObjectMesh_isGlobalAncillary(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setUseDefaultScenePropertiesOnDeserialization(MR_ObjectMesh *_this, bool useDefaultScenePropertiesOnDeserialization)
MRC_API MR_std_vector_MR_ViewportMask * MR_ObjectMesh_getAllVisualizeProperties(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_isPickable(const MR_ObjectMesh *_this, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setSpecularStrength(MR_ObjectMesh *_this, float specularStrength)
MRC_API MR_uint64_t MR_ObjectMesh_numUndirectedEdges(const MR_ObjectMesh *_this)
MRC_API const MR_Color * MR_ObjectMesh_getEdgesColor(const MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API void MR_ObjectMesh_setGlobalAlpha(MR_ObjectMesh *_this, unsigned char alpha, const MR_ViewportId *viewportId)
MRC_API void MR_ObjectMesh_setLocked(MR_ObjectMesh *_this, bool on)
MRC_API MR_ObjectChildrenHolder * MR_ObjectMesh_MutableUpcastTo_MR_ObjectChildrenHolder(MR_ObjectMesh *object)
Upcasts an instance of MR::ObjectMesh to its base class MR::ObjectChildrenHolder.
MRC_API MR_ObjectMesh * MR_ObjectMesh_DefaultConstructArray(size_t num_elems)
MRC_API const unsigned char * MR_ObjectMesh_getGlobalAlpha(const MR_ObjectMesh *_this, const MR_ViewportId *viewportId)
MRC_API const MR_Color * MR_ObjectMesh_getPointsColor(const MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API MR_Box3f MR_ObjectMesh_getBoundingBox(const MR_ObjectMesh *_this)
MRC_API const MR_Color * MR_ObjectMesh_getBordersColor(const MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API void MR_ObjectMesh_setVisualizeProperty(MR_ObjectMesh *_this, bool value, const MR_AnyVisualizeMaskEnum *type, const MR_ViewportMask *viewportMask)
MRC_API void MR_ObjectMesh_setAncillaryTexture(MR_ObjectMesh *_this, MR_PassBy texture_pass_by, MR_MeshTexture *texture)
MRC_API MR_uint64_t MR_ObjectMesh_numComponents(const MR_ObjectMesh *_this)
MRC_API float MR_ObjectMesh_getEdgeWidth(const MR_ObjectMesh *_this)
MRC_API double MR_ObjectMesh_selectedArea(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_supportsVisualizeProperty(const MR_ObjectMesh *_this, const MR_AnyVisualizeMaskEnum *type)
MRC_API void MR_ObjectMesh_DestroyArray(const MR_ObjectMesh *_this)
Destroys a heap-allocated array of MR_ObjectMesh. Does nothing if the pointer is null.
MRC_API bool MR_ObjectMesh_isAncillary(const MR_ObjectMesh *_this)
MRC_API const MR_ObjectMesh * MR_ObjectMesh_OffsetPtr(const MR_ObjectMesh *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ObjectMesh_setFrontColor(MR_ObjectMesh *_this, const MR_Color *color, bool selected, const MR_ViewportId *viewportId)
MRC_API MR_ViewportMask * MR_ObjectMesh_visibilityMask(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setSelectedEdgesColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API const MR_ObjectMeshHolder * MR_ObjectMesh_UpcastTo_MR_ObjectMeshHolder(const MR_ObjectMesh *object)
MRC_API void MR_ObjectMesh_setData(MR_ObjectMesh *_this, MR_ObjectMeshData *data)
MRC_API const MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_OffsetPtr(const MR_ObjectMeshMergeOptions *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API bool MR_ObjectMesh_render(const MR_ObjectMesh *_this, const MR_ModelRenderParams *_1)
MRC_API MR_std_shared_ptr_MR_ObjectMesh * MR_merge_2(const MR_std_vector_std_shared_ptr_MR_ObjectMesh *objsMesh, const MR_ObjectMeshMergeOptions *options)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectMesh_cloneTree(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_flatShading(const MR_ObjectMesh *_this)
MRC_API float MR_ObjectMesh_getPointSize(const MR_ObjectMesh *_this)
MRC_API const MR_Object * MR_ObjectMesh_UpcastTo_MR_Object(const MR_ObjectMesh *object)
MRC_API MR_ObjectMesh * MR_ObjectMesh_OffsetMutablePtr(MR_ObjectMesh *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_ObjectMesh_updateUVCoords(MR_ObjectMesh *_this, MR_VertCoords2 *updated)
MRC_API bool MR_ObjectMesh_useDefaultScenePropertiesOnDeserialization(const MR_ObjectMesh *_this)
MRC_API const char * MR_ObjectMesh_StaticTypeName(void)
Generated from method MR::ObjectMesh::StaticTypeName.
MRC_API void MR_ObjectMesh_setXfsForAllViewports(MR_ObjectMesh *_this, MR_PassBy xf_pass_by, MR_ViewportProperty_MR_AffineXf3f *xf)
MRC_API void MR_ObjectMesh_selectFaces(MR_ObjectMesh *_this, MR_PassBy newSelection_pass_by, MR_FaceBitSet *newSelection)
MRC_API void MR_ObjectMesh_setEdgeWidth(MR_ObjectMesh *_this, float edgeWidth)
MRC_API float MR_ObjectMesh_avgEdgeLen(const MR_ObjectMesh *_this)
MRC_API const MR_VisualObject * MR_ObjectMesh_UpcastTo_MR_VisualObject(const MR_ObjectMesh *object)
MRC_API const MR_std_shared_ptr_MR_Mesh * MR_ObjectMesh_varMesh(MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_isParentLocked(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_resetXf(MR_ObjectMesh *_this, const MR_ViewportId *id)
MRC_API unsigned int MR_ObjectMesh_getDirtyFlags(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_setParentLocked(MR_ObjectMesh *_this, bool lock)
MRC_API void MR_ObjectMesh_resetDirtyExceptMask(const MR_ObjectMesh *_this, unsigned int mask)
MRC_API const MR_VertCoords2 * MR_ObjectMesh_getUVCoords(const MR_ObjectMesh *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectMesh_getSharedPtr(const MR_ObjectMesh *_this)
MRC_API double MR_ObjectMesh_volume(const MR_ObjectMesh *_this)
MRC_API const char * MR_ObjectMesh_actualSerializeFormat(const MR_ObjectMesh *_this)
MRC_API const MR_UndirectedEdgeBitSet * MR_ObjectMesh_creases(const MR_ObjectMesh *_this)
MRC_API void MR_ObjectMesh_renderUi(const MR_ObjectMesh *_this, const MR_UiRenderParams *params)
MRC_API const MR_std_set_std_string * MR_ObjectMesh_tags(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_ConstructFromAnother(const MR_ObjectMeshMergeOptions *_other)
MRC_API void MR_ObjectMesh_updateTexturePerFace(MR_ObjectMesh *_this, MR_TexturePerFace *texturePerFace)
MRC_API void MR_ObjectMesh_setSelectedFacesColor(MR_ObjectMesh *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API const MR_MeshTexture * MR_ObjectMesh_getTexture(const MR_ObjectMesh *_this)
MRC_API MR_uint64_t MR_ObjectMesh_numSelectedEdges(const MR_ObjectMesh *_this)
MRC_API bool MR_ObjectMesh_select(MR_ObjectMesh *_this, bool on)
MRC_API MR_std_vector_std_string * MR_ObjectMesh_getInfoLines(const MR_ObjectMesh *_this)
MRC_API MR_ObjectMeshMergeOptions * MR_ObjectMeshMergeOptions_OffsetMutablePtr(MR_ObjectMeshMergeOptions *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const char * MR_ObjectMesh_StaticClassNameInPlural(void)
Generated from method MR::ObjectMesh::StaticClassNameInPlural.
MRC_API const char * MR_ObjectMesh_StaticClassName(void)
Generated from method MR::ObjectMesh::StaticClassName.
MRC_API const MR_std_string * MR_ObjectMesh_name(const MR_ObjectMesh *_this)
struct MR_ObjectMeshHolder MR_ObjectMeshHolder
Definition MRObject.h:33
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRPdf.h:29
MR_PassBy
Definition common.h:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition exports.h:11
virtual std::string name() const override
size_t size() const
Definition MRAffineXf.h:39
Definition MRBox.h:110
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRViewportId.h:17