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

Public Member Functions

bool __bool__ (self)
 __init__ (self, *args, **kwargs)
bool valid (self)
ConstVertId closestVert (self)
float distSq (self)
bool isBd (self)
Const_std_optional_Vector3_float normal (self)
ConstVector3f point (self)

Static Protected Attributes

typing _offsetof_closestVert = 36
typing _offsetof_distSq = 32
typing _offsetof_isBd = 28
typing _offsetof_normal = 12
typing _offsetof_point = 0

Detailed Description

Generated from:  MR::MeshOrPoints::ProjectionResult

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.MeshOrPoints.ConstProjectionResult, point: meshlib.mrmeshpy.ConstVector3f, normal: meshlib.mrmeshpy.Const_std_optional_Vector3_float, isBd: bool, distSq: float, closestVert: meshlib.mrmeshpy.ConstVertId) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ __bool__()

bool mrmeshpy.MeshOrPoints.ConstProjectionResult.__bool__ ( self)

◆ closestVert()

ConstVertId mrmeshpy.MeshOrPoints.ConstProjectionResult.closestVert ( self)
for point clouds it is the closest vertex,
for meshes it is the closest vertex of the triangle with the closest point

Reimplemented in mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.MeshOrPoints.ProjectionResult, and mrmeshpy.MeshOrPoints.ProjectionResult.

◆ distSq()

float mrmeshpy.MeshOrPoints.ConstProjectionResult.distSq ( self)

◆ isBd()

bool mrmeshpy.MeshOrPoints.ConstProjectionResult.isBd ( self)
can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region)

Reimplemented in mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.MeshOrPoints.ProjectionResult, and mrmeshpy.MeshOrPoints.ProjectionResult.

◆ normal()

Const_std_optional_Vector3_float mrmeshpy.MeshOrPoints.ConstProjectionResult.normal ( self)
normal at the closest point;
for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex)

Reimplemented in mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.ConstMeshOrPoints.ProjectionResult, mrmeshpy.MeshOrPoints.ProjectionResult, and mrmeshpy.MeshOrPoints.ProjectionResult.

◆ point()

◆ valid()

bool mrmeshpy.MeshOrPoints.ConstProjectionResult.valid ( self)

Member Data Documentation

◆ _offsetof_closestVert

typing mrmeshpy.MeshOrPoints.ConstProjectionResult._offsetof_closestVert = 36
staticprotected

◆ _offsetof_distSq

typing mrmeshpy.MeshOrPoints.ConstProjectionResult._offsetof_distSq = 32
staticprotected

◆ _offsetof_isBd

typing mrmeshpy.MeshOrPoints.ConstProjectionResult._offsetof_isBd = 28
staticprotected

◆ _offsetof_normal

typing mrmeshpy.MeshOrPoints.ConstProjectionResult._offsetof_normal = 12
staticprotected

◆ _offsetof_point

typing mrmeshpy.MeshOrPoints.ConstProjectionResult._offsetof_point = 0
staticprotected

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