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

Public Member Functions

Vector3i __call__ (self, ConstVector3d p)
Vector3i __call__ (self, ConstVector3f p)
 __init__ (self, *args, **kwargs)
int scaleOnly (self, float v)
ConstVector3d center (self)
float invRange (self)

Static Protected Attributes

typing _offsetof_center = 0
typing _offsetof_invRange = 24

Detailed Description

Generated from:  MR::ConvertToIntVector

translate then scale float-to-int coordinate converter

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstConvertToIntVector, arg0: meshlib.mrmeshpy.ConstConvertToIntVector) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstConvertToIntVector, center: meshlib.mrmeshpy.ConstVector3d, invRange: float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstConvertToIntVector, : meshlib.mrmeshpy.ConstConvertToIntVector) -> None

Member Function Documentation

◆ __call__() [1/2]

Vector3i mrmeshpy.ConstConvertToIntVector.__call__ ( self,
ConstVector3d p )
double-to-int coordinates converter

◆ __call__() [2/2]

Vector3i mrmeshpy.ConstConvertToIntVector.__call__ ( self,
ConstVector3f p )
float-to-int coordinates converter

◆ center()

ConstVector3d mrmeshpy.ConstConvertToIntVector.center ( self)

◆ invRange()

float mrmeshpy.ConstConvertToIntVector.invRange ( self)

◆ scaleOnly()

int mrmeshpy.ConstConvertToIntVector.scaleOnly ( self,
float v )
applies scaling only (without translation) with the following rounding to the nearest int

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.ConstConvertToIntVector._offsetof_center = 0
staticprotected

◆ _offsetof_invRange

typing mrmeshpy.ConstConvertToIntVector._offsetof_invRange = 24
staticprotected

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