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

Public Member Functions

bool __bool__ (self)
 __init__ (self, *args, **kwargs)
MeshTriPoint mtp (self, ConstMeshTopology topology)
bool valid (self)
float distanceAlongLine (self)
ConstPointOnFace proj (self)
ConstTriPointf tp (self)

Static Protected Attributes

typing _offsetof_distanceAlongLine = 24
typing _offsetof_proj = 0
typing _offsetof_tp = 16

Detailed Description

Generated from:  MR::MeshIntersectionResult

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstMeshIntersectionResult, proj: meshlib.mrmeshpy.ConstPointOnFace, tp: meshlib.mrmeshpy.ConstTriPointf, distanceAlongLine: float) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ __bool__()

bool mrmeshpy.ConstMeshIntersectionResult.__bool__ ( self)

◆ distanceAlongLine()

float mrmeshpy.ConstMeshIntersectionResult.distanceAlongLine ( self)
stores the distance from ray origin to the intersection point in direction units

Reimplemented in mrmeshpy.MeshIntersectionResult, and mrmeshpy.MeshIntersectionResult.

◆ mtp()

MeshTriPoint mrmeshpy.ConstMeshIntersectionResult.mtp ( self,
ConstMeshTopology topology )
returns the intersection point as MeshTriPoint relative to topology.edgeWithLeft( proj.face ), or invalid MeshTriPoint if no intersection was found

◆ proj()

ConstPointOnFace mrmeshpy.ConstMeshIntersectionResult.proj ( self)
stores intersected face and global coordinates

Reimplemented in mrmeshpy.MeshIntersectionResult, and mrmeshpy.MeshIntersectionResult.

◆ tp()

ConstTriPointf mrmeshpy.ConstMeshIntersectionResult.tp ( self)
barycentric coordinates of proj relative to the vertices of proj.face in the order of MeshTopology::getTriVerts( proj.face )

Reimplemented in mrmeshpy.MeshIntersectionResult, and mrmeshpy.MeshIntersectionResult.

◆ valid()

bool mrmeshpy.ConstMeshIntersectionResult.valid ( self)
check for validity

Member Data Documentation

◆ _offsetof_distanceAlongLine

typing mrmeshpy.ConstMeshIntersectionResult._offsetof_distanceAlongLine = 24
staticprotected

◆ _offsetof_proj

typing mrmeshpy.ConstMeshIntersectionResult._offsetof_proj = 0
staticprotected

◆ _offsetof_tp

typing mrmeshpy.ConstMeshIntersectionResult._offsetof_tp = 16
staticprotected

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