16struct MeshToDistanceMapParams
59 operator AffineXf3f()
const
63 AffineXf3f xf()
const {
return operator AffineXf3f(); }
65 Vector3f
xRange = Vector3f( 1.f, 0.f, 0.f );
66 Vector3f
yRange = Vector3f( 0.f, 1.f, 0.f );
67 Vector3f
direction = Vector3f( 0.f, 0.f, 1.f );
68 Vector3f
orgPoint = Vector3f( 0.f, 0.f, 0.f );
86 std::pair<Vector3f,Vector2f> orgSizeFromMeshPart_(
const Matrix3f& rotation,
const MeshPart& mp,
bool presiceBox )
const;
87 void initFromSize_(
const AffineXf3f& worldOrientation,
const Vector2i& resolution,
const Vector2f&
size );
90struct DistanceMapToWorld;
93struct ContourToDistanceMapParams
100 const Vector2f& areaSize,
bool withSign =
false );
107 float offset,
bool withSign =
false );
111 float offset,
bool withSign =
false );
116 Vector2f toWorld( Vector2f point )
const
122 operator AffineXf3f()
const
126 AffineXf3f xf()
const {
return operator AffineXf3f(); }
131 bool withSign{
false };
135struct DistanceMapToWorld
160 Vector3f toWorld(
float x,
float y,
float depth )
const
166 operator AffineXf3f()
const
170 AffineXf3f xf()
const {
return operator AffineXf3f(); }
188struct DistanceMapLoadSettings
197struct DistanceMapSaveSettings
200 const AffineXf3f*
xf =
nullptr;
#define MRMESH_API
Definition MRMeshFwd.h:80
new unsafe ref MR.Vector2f orgPoint
new unsafe ref MR.Vector2i resolution
unsafe ContourToDistanceMapParams()
new unsafe ref MR.Vector2f pixelSize
new unsafe MR.Std.Function_BoolFuncFromFloat progress
new unsafe MR.? DistanceMapToWorld distanceMapToWorld
new unsafe MR.? ConstBox_AffineXf3f xf
new unsafe MR.Std.Function_BoolFuncFromFloat progress
new unsafe ref MR.Vector3f direction
new unsafe ref MR.Vector3f pixelXVec
new unsafe ref MR.Vector3f pixelYVec
unsafe DistanceMapToWorld()
new unsafe ref MR.Vector3f orgPoint
new unsafe ref MR.Vector3f direction
new unsafe ref MR.Vector3f yRange
new unsafe ref bool allowNegativeValues
new unsafe ref MR.Vector3f orgPoint
new unsafe ref MR.Vector3f xRange
new unsafe ref float minValue
new unsafe ref bool useDistanceLimits
new unsafe ref float maxValue
unsafe void setDistanceLimits(float min, float max)
unsafe MeshToDistanceMapParams()
auto depth(const Box< V > &box)
returns size along z axis
Definition MRMesh/MRBox.h:368
constexpr auto max(A a, B b)
Definition MRImGuiVectorOperators.h:143
constexpr auto min(A a, B b)
Definition MRImGuiVectorOperators.h:141
MRVIEWER_API void point(Element elem, const Params ¶ms, ImVec2 point)
Definition MRCameraOrientationPlugin.h:8
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:29
static unsafe MR.Matrix3f fromColumns(in MR.Vector3f x, in MR.Vector3f y, in MR.Vector3f z)
static MR.Vector3f plusX()
static MR.Vector3f plusY()
static MR.Vector3f plusZ()