MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstContourToDistanceMapParams Class Reference
Inheritance diagram for mrmeshpy.ConstContourToDistanceMapParams:

Public Member Functions

 __init__ (self, *args, **kwargs)
Vector2f toWorld (self, ConstVector2f point)
AffineXf3f xf (self)
ConstVector2f orgPoint (self)
ConstVector2f pixelSize (self)
ConstVector2i resolution (self)
bool withSign (self)

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__()

mrmeshpy.ConstContourToDistanceMapParams.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams) -> None

Default ctor, make sure to fill all fields manually

2. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, resolution: meshlib.mrmeshpy.ConstVector2i, oriPoint: meshlib.mrmeshpy.ConstVector2f, areaSize: meshlib.mrmeshpy.ConstVector2f, withSign: bool = False) -> None

Ctor, calculating pixelSize by areaSize & dmapSize

3. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, resolution: meshlib.mrmeshpy.ConstVector2i, box: meshlib.mrmeshpy.ConstBox2f, withSign: bool = False) -> None

Ctor, calculating pixelSize & oriPoint by box parameters

4. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, resolution: meshlib.mrmeshpy.ConstVector2i, contours: meshlib.mrmeshpy.Const_std_vector_std_vector_Vector2_float, offset: float, withSign: bool = False) -> None

Ctor, calculating pixelSize & oriPoint by contours box + offset

5. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, pixelSize: float, contours: meshlib.mrmeshpy.Const_std_vector_std_vector_Vector2_float, offset: float, withSign: bool = False) -> None

Ctor, calculating resolution & oriPoint by contours box + offset

6. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, toWorld: meshlib.mrmeshpy.ConstDistanceMapToWorld) -> None

7. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, arg0: meshlib.mrmeshpy.ConstContourToDistanceMapParams) -> None

Implicit copy constructor.

8. __init__(self: meshlib.mrmeshpy.ConstContourToDistanceMapParams, : meshlib.mrmeshpy.ConstContourToDistanceMapParams) -> None

Member Function Documentation

◆ orgPoint()

ConstVector2f mrmeshpy.ConstContourToDistanceMapParams.orgPoint ( self)
coordinates of origin area corner

Reimplemented in mrmeshpy.ContourToDistanceMapParams, and mrmeshpy.ContourToDistanceMapParams.

◆ pixelSize()

ConstVector2f mrmeshpy.ConstContourToDistanceMapParams.pixelSize ( self)

◆ resolution()

ConstVector2i mrmeshpy.ConstContourToDistanceMapParams.resolution ( self)

◆ toWorld()

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

◆ withSign()

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

Reimplemented in mrmeshpy.ContourToDistanceMapParams, and mrmeshpy.ContourToDistanceMapParams.

◆ xf()

AffineXf3f mrmeshpy.ConstContourToDistanceMapParams.xf ( self)

Member Data Documentation

◆ _offsetof_orgPoint

typing mrmeshpy.ConstContourToDistanceMapParams._offsetof_orgPoint = 16
staticprotected

◆ _offsetof_pixelSize

typing mrmeshpy.ConstContourToDistanceMapParams._offsetof_pixelSize = 0
staticprotected

◆ _offsetof_resolution

typing mrmeshpy.ConstContourToDistanceMapParams._offsetof_resolution = 8
staticprotected

◆ _offsetof_withSign

typing mrmeshpy.ConstContourToDistanceMapParams._offsetof_withSign = 24
staticprotected

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