MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ContourToDistanceMapParams Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, Vector2i resolution, Vector2f oriPoint, Vector2f areaSize, bool withSign=False)
 
None __init__ (self, Vector2i resolution, Box2f box, bool withSign=False)
 
None __init__ (self, Vector2i resolution, std_vector_std_vector_Vector2_float contours, float offset, bool withSign=False)
 
None __init__ (self, float pixelSize, std_vector_std_vector_Vector2_float contours, float offset, bool withSign=False)
 
None __init__ (self, DistanceMapToWorld toWorld)
 
Vector2f toWorld (self, Vector2f point)
 
AffineXf3f xf (self)
 
Vector2f orgPoint (self)
 
None orgPoint (self, Vector2f arg1)
 
Vector2f pixelSize (self)
 
None pixelSize (self, Vector2f arg1)
 
Vector2i resolution (self)
 
None resolution (self, Vector2i arg1)
 
bool withSign (self)
 
None withSign (self, bool arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
ContourToDistanceMapParams operator (*args, **kwargs)
 
ContourToDistanceMapParams operator (*args, **kwargs)
 

Static Protected Attributes

typing _offsetof_orgPoint = 16
 
typing _offsetof_pixelSize = 0
 
typing _offsetof_resolution = 8
 
typing _offsetof_withSign = 24
 

Detailed Description

Generated from:  MR::ContourToDistanceMapParams

Structure with parameters to generate DistanceMap by Contours

Constructor & Destructor Documentation

◆ __init__() [1/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self)
Default ctor, make sure to fill all fields manually

◆ __init__() [3/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self,
Vector2i resolution,
Vector2f oriPoint,
Vector2f areaSize,
bool withSign = False )
Ctor, calculating pixelSize by areaSize & dmapSize

◆ __init__() [4/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self,
Vector2i resolution,
Box2f box,
bool withSign = False )
Ctor, calculating pixelSize & oriPoint by box parameters

◆ __init__() [5/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self,
Vector2i resolution,
std_vector_std_vector_Vector2_float contours,
float offset,
bool withSign = False )
Ctor, calculating pixelSize & oriPoint by contours box + offset

◆ __init__() [6/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self,
float pixelSize,
std_vector_std_vector_Vector2_float contours,
float offset,
bool withSign = False )
Ctor, calculating resolution & oriPoint by contours box + offset

◆ __init__() [7/7]

None mrmeshpy.ContourToDistanceMapParams.__init__ ( self,
DistanceMapToWorld toWorld )

Member Function Documentation

◆ operator() [1/2]

ContourToDistanceMapParams mrmeshpy.ContourToDistanceMapParams.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

ContourToDistanceMapParams mrmeshpy.ContourToDistanceMapParams.operator ( * args,
** kwargs )
static

◆ orgPoint() [1/2]

Vector2f mrmeshpy.ContourToDistanceMapParams.orgPoint ( self)
coordinates of origin area corner

◆ orgPoint() [2/2]

None mrmeshpy.ContourToDistanceMapParams.orgPoint ( self,
Vector2f arg1 )

◆ pixelSize() [1/2]

Vector2f mrmeshpy.ContourToDistanceMapParams.pixelSize ( self)
pixel size

◆ pixelSize() [2/2]

None mrmeshpy.ContourToDistanceMapParams.pixelSize ( self,
Vector2f arg1 )

◆ resolution() [1/2]

Vector2i mrmeshpy.ContourToDistanceMapParams.resolution ( self)
distance map size

◆ resolution() [2/2]

None mrmeshpy.ContourToDistanceMapParams.resolution ( self,
Vector2i arg1 )

◆ toWorld()

Vector2f mrmeshpy.ContourToDistanceMapParams.toWorld ( self,
Vector2f point )
get world 2d coordinate (respects origin point and pixel size)
point - coordinate on distance map

◆ withSign() [1/2]

bool mrmeshpy.ContourToDistanceMapParams.withSign ( self)
allows calculate negative values of distance (inside closed and correctly oriented (CW) contours)

◆ withSign() [2/2]

None mrmeshpy.ContourToDistanceMapParams.withSign ( self,
bool arg1 )

◆ xf()

AffineXf3f mrmeshpy.ContourToDistanceMapParams.xf ( self)

Member Data Documentation

◆ _offsetof_orgPoint

typing mrmeshpy.ContourToDistanceMapParams._offsetof_orgPoint = 16
staticprotected

◆ _offsetof_pixelSize

typing mrmeshpy.ContourToDistanceMapParams._offsetof_pixelSize = 0
staticprotected

◆ _offsetof_resolution

typing mrmeshpy.ContourToDistanceMapParams._offsetof_resolution = 8
staticprotected

◆ _offsetof_withSign

typing mrmeshpy.ContourToDistanceMapParams._offsetof_withSign = 24
staticprotected

The documentation for this class was generated from the following file: