MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstTriPointd:

Public Member Functions

bool __eq__ (self, ConstTriPointd rhs)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstTriPointd rhs)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any tp)
int inVertex (self)
TriPointd lnext (self)
int onEdge (self)
float a (self)
float b (self)

Static Public Attributes

typing eps = 2.220446049250313e-15

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_b = 8

Detailed Description

Generated from:  MR::TriPointd

\\brief encodes a point inside a triangle using barycentric coordinates
\\details Notations used below: v0, v1, v2 - points of the triangle

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstTriPointd, : meshlib.mrmeshpy.ConstNoInit) -> None

3. __init__(self: meshlib.mrmeshpy.ConstTriPointd, a: float, b: float) -> None

4. __init__(self: meshlib.mrmeshpy.ConstTriPointd, p: meshlib.mrmeshpy.ConstVector3d, v0: meshlib.mrmeshpy.ConstVector3d, v1: meshlib.mrmeshpy.ConstVector3d, v2: meshlib.mrmeshpy.ConstVector3d, edge: int = -1) -> None

given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point;
if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there

5. __init__(self: meshlib.mrmeshpy.ConstTriPointd, p: meshlib.mrmeshpy.ConstVector3d, v1: meshlib.mrmeshpy.ConstVector3d, v2: meshlib.mrmeshpy.ConstVector3d, edge: int = -1) -> None

given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point;
if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there

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

Implicit copy constructor.

7. __init__(self: meshlib.mrmeshpy.ConstTriPointd, : meshlib.mrmeshpy.ConstTriPointd) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstTriPointd.__eq__ ( self,
ConstTriPointd rhs )
returns true if two points have equal (a,b) representation

◆ __ne__()

bool mrmeshpy.ConstTriPointd.__ne__ ( self,
ConstTriPointd rhs )
returns true if two points have equal (a,b) representation

◆ __repr__()

str mrmeshpy.ConstTriPointd.__repr__ ( self)

◆ __rlshift__()

typing.Any mrmeshpy.ConstTriPointd.__rlshift__ ( self,
typing.Any tp )

◆ a()

float mrmeshpy.ConstTriPointd.a ( self)
a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1

Reimplemented in mrmeshpy.TriPointd, and mrmeshpy.TriPointd.

◆ b()

float mrmeshpy.ConstTriPointd.b ( self)
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2

Reimplemented in mrmeshpy.TriPointd, and mrmeshpy.TriPointd.

◆ inVertex()

int mrmeshpy.ConstTriPointd.inVertex ( self)
returns [0,2] if the point is in a vertex or -1 otherwise

◆ lnext()

TriPointd mrmeshpy.ConstTriPointd.lnext ( self)
represents the same point relative to next edge in the same triangle

◆ onEdge()

int mrmeshpy.ConstTriPointd.onEdge ( self)
returns [0,2] if the point is on edge or -1 otherwise:
0 means edge [v1,v2]; 1 means edge [v2,v0]; 2 means edge [v0,v1]

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstTriPointd._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstTriPointd._offsetof_b = 8
staticprotected

◆ eps

typing mrmeshpy.ConstTriPointd.eps = 2.220446049250313e-15
static

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