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

Public Member Functions

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

Static Public Attributes

typing eps = 1.1920928955078125e-06

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_b = 4

Detailed Description

Generated from:  MR::TriPointf

\\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.ConstTriPointf.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

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

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

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

4. __init__(self: meshlib.mrmeshpy.ConstTriPointf, p: meshlib.mrmeshpy.ConstVector3f, v0: meshlib.mrmeshpy.ConstVector3f, v1: meshlib.mrmeshpy.ConstVector3f, v2: meshlib.mrmeshpy.ConstVector3f, 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.ConstTriPointf, p: meshlib.mrmeshpy.ConstVector3f, v1: meshlib.mrmeshpy.ConstVector3f, v2: meshlib.mrmeshpy.ConstVector3f, 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.ConstTriPointf, arg0: meshlib.mrmeshpy.ConstTriPointf) -> None

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.ConstTriPointf.__repr__ ( self)

◆ __rlshift__()

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

◆ a()

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

Reimplemented in mrmeshpy.TriPointf, and mrmeshpy.TriPointf.

◆ b()

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

Reimplemented in mrmeshpy.TriPointf, and mrmeshpy.TriPointf.

◆ inVertex()

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

◆ lnext()

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

◆ onEdge()

int mrmeshpy.ConstTriPointf.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.ConstTriPointf._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstTriPointf._offsetof_b = 4
staticprotected

◆ eps

typing mrmeshpy.ConstTriPointf.eps = 1.1920928955078125e-06
static

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