MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.MeshTriPointd Class Reference
Inheritance diagram for meshlib.MeshTriPointd:

Public Member Functions

 MeshTriPointd (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshTriPointd ()
 MeshTriPointd (meshlib.MeshTriPointd _other)
 MeshTriPointd (meshlib.NoInit _1)
 MeshTriPointd (meshlib.EdgeId e, meshlib.TriPointd bary)
 MeshTriPointd (meshlib.EdgePointd ep)
 MeshTriPointd (meshlib.MeshTopology topology, meshlib.VertId v)
boolean convertTo_bool ()
meshlib.MeshTriPointd assignFromAnother (meshlib.MeshTriPointd _other)
meshlib.VertId inVertex (meshlib.MeshTopology topology)
boolean inVertex ()
meshlib.EdgePointd onEdge (meshlib.MeshTopology topology)
boolean isBd (meshlib.MeshTopology topology, meshlib.FaceBitSet region)
boolean fromTriangle (meshlib.MeshTopology topology, meshlib.FaceId f)
boolean valid ()
meshlib.MeshTriPointd lnext (meshlib.MeshTopology topology)
meshlib.MeshTriPointd canonical (meshlib.MeshTopology topology)
meshlib.std_array_MR_WeightedVertexd_3 getWeightedVerts (meshlib.MeshTopology topology)
double interpolate (meshlib.MeshTopology topology, meshlib.VertScalars field)
boolean opEqual (meshlib.MeshTriPointd rhs)
boolean opNotEqual (meshlib.MeshTriPointd rhs)
meshlib.EdgeId e ()
void setE (meshlib.EdgeId value)
meshlib.TriPointd bary ()
void setBary (meshlib.TriPointd value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

encodes a point inside a triangular mesh face using barycentric coordinates

Notations used below:
v0 - the value in org( e )
v1 - the value in dest( e )
v2 - the value in dest( next( e ) ) Generated from class MR::MeshTriPointd.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ MeshTriPointd() [1/7]

meshlib.MeshTriPointd.MeshTriPointd ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ MeshTriPointd() [2/7]

meshlib.MeshTriPointd.MeshTriPointd ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshTriPointd_DefaultConstruct().

◆ MeshTriPointd() [3/7]

meshlib.MeshTriPointd.MeshTriPointd ( meshlib.MeshTriPointd _other)

Generated from constructor MR::MeshTriPointd::MeshTriPointd. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MeshTriPointd_ConstructFromAnother().

◆ MeshTriPointd() [4/7]

meshlib.MeshTriPointd.MeshTriPointd ( meshlib.NoInit _1)

Generated from constructor MR::MeshTriPointd::MeshTriPointd. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_MeshTriPointd_Construct_1_MR_NoInit().

◆ MeshTriPointd() [5/7]

meshlib.MeshTriPointd.MeshTriPointd ( meshlib.EdgeId e,
meshlib.TriPointd bary )

Generated from constructor MR::MeshTriPointd::MeshTriPointd. The reference to the parameter e might be preserved in the constructed object. The reference to the parameter bary might be preserved in the constructed object.

Calls MR_MeshTriPointd_Construct_2_MR_EdgeId().

◆ MeshTriPointd() [6/7]

meshlib.MeshTriPointd.MeshTriPointd ( meshlib.EdgePointd ep)

Generated from constructor MR::MeshTriPointd::MeshTriPointd. The reference to the parameter ep might be preserved in the constructed object.

Calls MR_MeshTriPointd_Construct_1_MR_EdgePointd().

◆ MeshTriPointd() [7/7]

meshlib.MeshTriPointd.MeshTriPointd ( meshlib.MeshTopology topology,
meshlib.VertId v )

Generated from constructor MR::MeshTriPointd::MeshTriPointd. The reference to the parameter topology might be preserved in the constructed object. The reference to the parameter v might be preserved in the constructed object.

Calls MR_MeshTriPointd_Construct_2_MR_MeshTopology().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshTriPointd meshlib.MeshTriPointd.assignFromAnother ( meshlib.MeshTriPointd _other)

Generated from method MR::MeshTriPointd::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MeshTriPointd_AssignFromAnother().

◆ bary()

meshlib.TriPointd meshlib.MeshTriPointd.bary ( )

barycentric coordinates

a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e ) b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) ) a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge Returns a pointer to a member variable of class MR::MeshTriPointd named bary. The reference to this object might be preserved as the return value.

Calls MR_MeshTriPointd_Get_bary().

◆ canonical()

meshlib.MeshTriPointd meshlib.MeshTriPointd.canonical ( meshlib.MeshTopology topology)

represents the same point relative to the topology.edgeWithLeft( topology.left( e ) ) Generated from method MR::MeshTriPointd::canonical.

Calls MR_MeshTriPointd_canonical().

◆ convertTo_bool()

boolean meshlib.MeshTriPointd.convertTo_bool ( )

Generated from conversion operator MR::MeshTriPointd::operator bool.

Calls MR_MeshTriPointd_ConvertTo_bool().

◆ e()

meshlib.EdgeId meshlib.MeshTriPointd.e ( )

< left face of this edge is considered Returns a pointer to a member variable of class MR::MeshTriPointd named e. The reference to this object might be preserved as the return value.

Calls MR_MeshTriPointd_Get_e().

◆ fromTriangle()

boolean meshlib.MeshTriPointd.fromTriangle ( meshlib.MeshTopology topology,
meshlib.FaceId f )

returns true if the point is inside or on the boundary of given triangular face Generated from method MR::MeshTriPointd::fromTriangle.

Calls MR_MeshTriPointd_fromTriangle().

◆ getWeightedVerts()

meshlib.std_array_MR_WeightedVertexd_3 meshlib.MeshTriPointd.getWeightedVerts ( meshlib.MeshTopology topology)

returns three weighted triangle's vertices with the sum of not-negative weights equal to 1, and the largest weight in the closest vertex Generated from method MR::MeshTriPointd::getWeightedVerts.

Calls MR_MeshTriPointd_getWeightedVerts().

◆ interpolate()

double meshlib.MeshTriPointd.interpolate ( meshlib.MeshTopology topology,
meshlib.VertScalars field )

linearly interpolates the values given in vertices to find the field's value at this point Generated from method MR::MeshTriPointd::interpolate.

Calls MR_MeshTriPointd_interpolate().

◆ inVertex() [1/2]

boolean meshlib.MeshTriPointd.inVertex ( )

returns true if the point is in a vertex Generated from method MR::MeshTriPointd::inVertex.

Calls MR_MeshTriPointd_inVertex_0().

◆ inVertex() [2/2]

meshlib.VertId meshlib.MeshTriPointd.inVertex ( meshlib.MeshTopology topology)

returns valid vertex id if the point is in vertex, otherwise returns invalid id Generated from method MR::MeshTriPointd::inVertex.

Calls MR_MeshTriPointd_inVertex_1().

◆ isBd()

boolean meshlib.MeshTriPointd.isBd ( meshlib.MeshTopology topology,
meshlib.FaceBitSet region )

returns true if the point is in vertex or on edge, and that location is on the boundary of the region Generated from method MR::MeshTriPointd::isBd.

Calls MR_MeshTriPointd_isBd().

◆ lnext()

meshlib.MeshTriPointd meshlib.MeshTriPointd.lnext ( meshlib.MeshTopology topology)

represents the same point relative to next edge in the same triangle Generated from method MR::MeshTriPointd::lnext.

Calls MR_MeshTriPointd_lnext().

◆ onEdge()

meshlib.EdgePointd meshlib.MeshTriPointd.onEdge ( meshlib.MeshTopology topology)

returns valid value if the point is on edge and topology.left(result.e) == topology.left(this->e), otherwise returns invalid MeshEdgePointT Generated from method MR::MeshTriPointd::onEdge.

Calls MR_MeshTriPointd_onEdge().

◆ opEqual()

boolean meshlib.MeshTriPointd.opEqual ( meshlib.MeshTriPointd rhs)

returns true if two points are equal including equal not-unique representation Generated from method MR::MeshTriPointd::operator==.

Calls MR_equal_MR_MeshTriPointd().

◆ opNotEqual()

boolean meshlib.MeshTriPointd.opNotEqual ( meshlib.MeshTriPointd rhs)

returns true if two points are equal including equal not-unique representation Generated from method MR::MeshTriPointd::operator!=.

Calls MR_not_equal_MR_MeshTriPointd().

◆ setBary()

void meshlib.MeshTriPointd.setBary ( meshlib.TriPointd value)

barycentric coordinates

a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e ) b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) ) a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge Modifies a member variable of class MR::MeshTriPointd named bary. The reference to the parameter value might be preserved in this object in element bary.

Calls MR_MeshTriPointd_Set_bary().

◆ setE()

void meshlib.MeshTriPointd.setE ( meshlib.EdgeId value)

< left face of this edge is considered Modifies a member variable of class MR::MeshTriPointd named e. The reference to the parameter value might be preserved in this object in element e.

Calls MR_MeshTriPointd_Set_e().

◆ valid()

boolean meshlib.MeshTriPointd.valid ( )

consider this valid if the edge ID is valid Generated from method MR::MeshTriPointd::valid.

Calls MR_MeshTriPointd_valid().


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