18 constexpr static const
char* TypeName() noexcept {
return "ObjectMesh"; }
19 virtual const char*
typeName()
const override {
return TypeName(); }
21 constexpr static const char*
ClassName() noexcept {
return "Mesh"; }
22 virtual std::string
className()
const override {
return ClassName(); }
28 virtual const std::shared_ptr< Mesh > &
varMesh() {
return data_.mesh; }
68[[nodiscard]]
MRMESH_API std::shared_ptr<ObjectMesh>
merge(
const std::vector<std::shared_ptr<ObjectMesh>>& objsMesh );
72[[nodiscard]]
MRMESH_API std::shared_ptr<ObjectMesh>
cloneRegion(
const std::shared_ptr<ObjectMesh>& objMesh,
const FaceBitSet& region,
bool copyTexture =
true );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:84
Definition MRObjectMeshHolder.h:32
Definition MRObjectMesh.h:11
virtual MRMESH_API void serializeFields_(Json::Value &root) const override
virtual MRMESH_API std::vector< std::string > getInfoLines() const override
return several info lines that can better describe the object in the UI
virtual MRMESH_API std::shared_ptr< Object > clone() const override
ObjectMesh(ObjectMesh &&) noexcept=default
virtual std::string classNameInPlural() const override
Definition MRObjectMesh.h:25
virtual MRMESH_API std::shared_ptr< Object > shallowClone() const override
MRMESH_API MeshIntersectionResult worldRayIntersection(const Line3f &worldRay, const FaceBitSet *region=nullptr) const
virtual MRMESH_API void swapBase_(Object &other) override
swaps this object with other
virtual MRMESH_API std::shared_ptr< Mesh > updateMesh(std::shared_ptr< Mesh > mesh)
MeshChangedSignal meshChangedSignal
Definition MRObjectMesh.h:53
virtual MRMESH_API void setDirtyFlags(uint32_t mask, bool invalidateCaches=true) override
virtual MRMESH_API void swapSignals_(Object &other) override
virtual const std::shared_ptr< Mesh > & varMesh()
returns variable mesh, if const mesh is needed use mesh() instead
Definition MRObjectMesh.h:28
static constexpr const char * ClassNameInPlural() noexcept
Definition MRObjectMesh.h:24
ObjectMesh(ProtectedStruct, const ObjectMesh &obj)
Definition MRObjectMesh.h:44
static constexpr const char * ClassName() noexcept
Definition MRObjectMesh.h:21
virtual MRMESH_API void setMesh(std::shared_ptr< Mesh > mesh)
sets given mesh to this, resets selection and creases
virtual std::string className() const override
Definition MRObjectMesh.h:22
virtual const char * typeName() const override
Definition MRObjectMesh.h:19
ObjectMesh(const ObjectMesh &other)=default
named object in the data model
Definition MRObject.h:62
Definition MRCameraOrientationPlugin.h:8
MRMESH_API std::shared_ptr< ObjectLines > cloneRegion(const std::shared_ptr< ObjectLines > &objLines, const UndirectedEdgeBitSet ®ion)
constructs new ObjectLines containing the region of data from input object
MRMESH_API std::shared_ptr< ObjectLines > merge(const std::vector< std::shared_ptr< ObjectLines > > &objsLines)
constructs new ObjectLines containing the union of valid data from all input objects
Definition MRMeshIntersect.h:18
Definition MRObject.h:279