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 |
Generated from: MR::ContourToDistanceMapParams Structure with parameters to generate DistanceMap by Contours
| 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
| ConstVector2f mrmeshpy.ConstContourToDistanceMapParams.orgPoint | ( | self | ) |
coordinates of origin area corner
Reimplemented in mrmeshpy.ContourToDistanceMapParams, and mrmeshpy.ContourToDistanceMapParams.
| ConstVector2f mrmeshpy.ConstContourToDistanceMapParams.pixelSize | ( | self | ) |
pixel size
Reimplemented in mrmeshpy.ContourToDistanceMapParams, and mrmeshpy.ContourToDistanceMapParams.
| ConstVector2i mrmeshpy.ConstContourToDistanceMapParams.resolution | ( | self | ) |
distance map size
Reimplemented in mrmeshpy.ContourToDistanceMapParams, and mrmeshpy.ContourToDistanceMapParams.
| Vector2f mrmeshpy.ConstContourToDistanceMapParams.toWorld | ( | self, | |
| ConstVector2f | point ) |
get world 2d coordinate (respects origin point and pixel size) point - coordinate on distance map
| 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.
| AffineXf3f mrmeshpy.ConstContourToDistanceMapParams.xf | ( | self | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |