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

Public Member Functions

 __init__ (self, *args, **kwargs)
MeshTriPoint mtp (self, ConstMeshTopology topology)
float dist (self)
ConstPointOnFace proj (self)
ConstTriPointf tp (self)

Static Protected Attributes

typing _offsetof_dist = 24
typing _offsetof_proj = 0
typing _offsetof_tp = 16

Detailed Description

Generated from:  MR::SignedDistanceToMeshResult

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

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

Implicit aggregate constructor.

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

Member Function Documentation

◆ dist()

float mrmeshpy.ConstSignedDistanceToMeshResult.dist ( self)
distance from pt to proj (positive - outside, negative - inside the mesh)

Reimplemented in mrmeshpy.SignedDistanceToMeshResult, and mrmeshpy.SignedDistanceToMeshResult.

◆ mtp()

MeshTriPoint mrmeshpy.ConstSignedDistanceToMeshResult.mtp ( self,
ConstMeshTopology topology )
returns the closest point on mesh as MeshTriPoint relative to topology.edgeWithLeft( proj.face ), or invalid MeshTriPoint if proj.face is invalid

◆ proj()

ConstPointOnFace mrmeshpy.ConstSignedDistanceToMeshResult.proj ( self)
the closest point on mesh

Reimplemented in mrmeshpy.SignedDistanceToMeshResult, and mrmeshpy.SignedDistanceToMeshResult.

◆ tp()

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

Reimplemented in mrmeshpy.SignedDistanceToMeshResult, and mrmeshpy.SignedDistanceToMeshResult.

Member Data Documentation

◆ _offsetof_dist

typing mrmeshpy.ConstSignedDistanceToMeshResult._offsetof_dist = 24
staticprotected

◆ _offsetof_proj

typing mrmeshpy.ConstSignedDistanceToMeshResult._offsetof_proj = 0
staticprotected

◆ _offsetof_tp

typing mrmeshpy.ConstSignedDistanceToMeshResult._offsetof_tp = 16
staticprotected

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