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

Public Member Functions

 __init__ (self, *args, **kwargs)
Vector3f toWorld (self, float x, float y, float depth)
AffineXf3f xf (self)
ConstVector3f direction (self)
ConstVector3f orgPoint (self)
ConstVector3f pixelXVec (self)
ConstVector3f pixelYVec (self)

Static Protected Attributes

typing _offsetof_direction = 36
typing _offsetof_orgPoint = 0
typing _offsetof_pixelXVec = 12
typing _offsetof_pixelYVec = 24

Detailed Description

Generated from:  MR::DistanceMapToWorld

This structure store data to transform distance map to world coordinates

Constructor & Destructor Documentation

◆ __init__()

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

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

Default ctor init all fields with zeros, make sure to fill them manually

2. __init__(self: meshlib.mrmeshpy.ConstDistanceMapToWorld, params: meshlib.mrmeshpy.ConstMeshToDistanceMapParams) -> None

Init fields by `MeshToDistanceMapParams` struct

3. __init__(self: meshlib.mrmeshpy.ConstDistanceMapToWorld, params: meshlib.mrmeshpy.ConstContourToDistanceMapParams) -> None

Init fields by `ContourToDistanceMapParams` struct

4. __init__(self: meshlib.mrmeshpy.ConstDistanceMapToWorld, xf: meshlib.mrmeshpy.ConstAffineXf3f) -> None

Converts from AffineXf3f

5. __init__(self: meshlib.mrmeshpy.ConstDistanceMapToWorld, arg0: meshlib.mrmeshpy.ConstDistanceMapToWorld) -> None

Implicit copy constructor.

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

Member Function Documentation

◆ direction()

ConstVector3f mrmeshpy.ConstDistanceMapToWorld.direction ( self)
vector of depth direction
\\note typically it should be normalized and orthogonal to `pixelXVec` `pixelYVec` plane

Reimplemented in mrmeshpy.DistanceMapToWorld, and mrmeshpy.DistanceMapToWorld.

◆ orgPoint()

ConstVector3f mrmeshpy.ConstDistanceMapToWorld.orgPoint ( self)
world coordinates of distance map origin corner

Reimplemented in mrmeshpy.DistanceMapToWorld, and mrmeshpy.DistanceMapToWorld.

◆ pixelXVec()

ConstVector3f mrmeshpy.ConstDistanceMapToWorld.pixelXVec ( self)
vector in world space of pixel x positive direction
length is equal to pixel size
\\note typically it should be orthogonal to `pixelYVec`

Reimplemented in mrmeshpy.DistanceMapToWorld, and mrmeshpy.DistanceMapToWorld.

◆ pixelYVec()

ConstVector3f mrmeshpy.ConstDistanceMapToWorld.pixelYVec ( self)
vector in world space of pixel y positive direction
length is equal to pixel size
\\note typically it should be orthogonal to `pixelXVec`

Reimplemented in mrmeshpy.DistanceMapToWorld, and mrmeshpy.DistanceMapToWorld.

◆ toWorld()

Vector3f mrmeshpy.ConstDistanceMapToWorld.toWorld ( self,
float x,
float y,
float depth )
get world coordinate by depth map info
x - float X coordinate of depth map: (0.0f - left corner of pixel 0, 1.0 - right corner of pixel 0 and left corner of pixel 1)
y - float Y coordinate of depth map: (0.0f - left corner of pixel 0, 1.0 - right corner of pixel 0 and left corner of pixel 1)
float depth value (value in distance map, represent depth in world)

◆ xf()

AffineXf3f mrmeshpy.ConstDistanceMapToWorld.xf ( self)

Member Data Documentation

◆ _offsetof_direction

typing mrmeshpy.ConstDistanceMapToWorld._offsetof_direction = 36
staticprotected

◆ _offsetof_orgPoint

typing mrmeshpy.ConstDistanceMapToWorld._offsetof_orgPoint = 0
staticprotected

◆ _offsetof_pixelXVec

typing mrmeshpy.ConstDistanceMapToWorld._offsetof_pixelXVec = 12
staticprotected

◆ _offsetof_pixelYVec

typing mrmeshpy.ConstDistanceMapToWorld._offsetof_pixelYVec = 24
staticprotected

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