27 constexpr static const
char*
StaticTypeName() noexcept {
return "CircleObject"; }
#define MRMESH_API
Definition MRMeshFwd.h:80
#define MRMESH_CLASS
Definition MRMeshFwd.h:87
Definition MRAddVisualPropertiesMixin.h:17
void setCenter(const Vector3f ¢er, ViewportId id={})
updates xf to fit given center
static constexpr const char * StaticTypeName() noexcept
Definition MRCircleObject.h:27
float getRadius(ViewportId id={}) const
calculates radius from xf
virtual Expected< std::future< Expected< void > > > serializeModel_(const std::filesystem::path &) const override
Definition MRCircleObject.h:68
static constexpr const char * StaticClassNameInPlural() noexcept
Definition MRCircleObject.h:33
virtual const std::vector< FeatureObjectSharedProperty > & getAllSharedProperties() const override
Create and generate list of bounded getters and setters for the main properties of feature object,...
virtual Expected< void > deserializeModel_(const std::filesystem::path &, ProgressCallback) override
Reads model from file.
Definition MRCircleObject.h:73
virtual std::shared_ptr< Object > shallowClone() const override
Vector3f getNormal(ViewportId id={}) const
calculates normal from xf
virtual void serializeFields_(Json::Value &root) const override
void setupRenderObject_() const override
CircleObject()
Creates simple sphere object with center in zero and radius - 1.
static constexpr const char * StaticClassName() noexcept
Definition MRCircleObject.h:30
FeatureObjectProjectPointResult projectPoint(const Vector3f &point, ViewportId id={}) const override
virtual const char * typeName() const override
Definition MRCircleObject.h:28
CircleObject(CircleObject &&) noexcept=default
virtual std::string className() const override
Definition MRCircleObject.h:31
virtual std::string classNameInPlural() const override
Definition MRCircleObject.h:34
CircleObject(ProtectedStruct, const CircleObject &obj)
Definition MRCircleObject.h:37
Vector3f getCenter(ViewportId id={}) const
calculates center from xf
void setNormal(const Vector3f &normal, ViewportId id={})
updates xf to fit given normal
virtual void swapBase_(Object &other) override
swaps this object with other
virtual std::shared_ptr< Object > clone() const override
CircleObject(const CircleObject &other)=default
CircleObject(const std::vector< Vector3f > &pointsToApprox)
Finds best sphere to approx given points.
void setRadius(float radius, ViewportId id={})
updates xf to fit given radius
named object in the data model
Definition MRObject.h:62
Definition MRViewportId.h:16
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
tl::expected< T, E > Expected
Definition MRExpected.h:31
Vector3f normal(const MeshTopology &topology, const VertCoords &points, FaceId f)
computes triangular face normal from its vertices
Definition MRMeshMath.h:224
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRFeatureObject.h:81
Definition MRObject.h:284