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

Public Member Functions

 EdgePoint (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 EdgePoint ()
 EdgePoint (meshlib.EdgePoint _other)
 EdgePoint (meshlib.EdgeId e, float a)
 EdgePoint (meshlib.MeshTopology topology, meshlib.VertId v)
 EdgePoint (meshlib.PolylineTopology topology, meshlib.VertId v)
boolean convertTo_bool ()
meshlib.EdgePoint assignFromAnother (meshlib.EdgePoint _other)
meshlib.VertId inVertex (meshlib.MeshTopology topology)
meshlib.VertId inVertex (meshlib.PolylineTopology topology)
meshlib.VertId getClosestVertex (meshlib.MeshTopology topology)
meshlib.VertId getClosestVertex (meshlib.PolylineTopology topology)
boolean inVertex ()
void moveToClosestVertex ()
boolean isBd (meshlib.MeshTopology topology, meshlib.FaceBitSet region)
boolean valid ()
meshlib.EdgePoint sym ()
boolean opEqual (meshlib.EdgePoint rhs)
boolean opNotEqual (meshlib.EdgePoint rhs)
meshlib.EdgeId e ()
void setE (meshlib.EdgeId value)
meshlib.SegmPointf a ()
void setA (meshlib.SegmPointf 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 on an edge of mesh or of polyline Generated from class MR::EdgePoint.

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

Constructor & Destructor Documentation

◆ EdgePoint() [1/6]

meshlib.EdgePoint.EdgePoint ( 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.

◆ EdgePoint() [2/6]

meshlib.EdgePoint.EdgePoint ( )

Constructs an empty (default-constructed) instance.

Calls MR_EdgePoint_DefaultConstruct().

◆ EdgePoint() [3/6]

meshlib.EdgePoint.EdgePoint ( meshlib.EdgePoint _other)

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

Calls MR_EdgePoint_ConstructFromAnother().

◆ EdgePoint() [4/6]

meshlib.EdgePoint.EdgePoint ( meshlib.EdgeId e,
float a )

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

Calls MR_EdgePoint_Construct_MR_EdgeId().

◆ EdgePoint() [5/6]

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

Generated from constructor MR::EdgePoint::EdgePoint. 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_EdgePoint_Construct_MR_MeshTopology().

◆ EdgePoint() [6/6]

meshlib.EdgePoint.EdgePoint ( meshlib.PolylineTopology topology,
meshlib.VertId v )

Generated from constructor MR::EdgePoint::EdgePoint. 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_EdgePoint_Construct_MR_PolylineTopology().

Member Function Documentation

◆ a()

meshlib.SegmPointf meshlib.EdgePoint.a ( )

< a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) Returns a pointer to a member variable of class MR::EdgePoint named a. The reference to this object might be preserved as the return value.

Calls MR_EdgePoint_Get_a().

◆ assignFromAnother()

meshlib.EdgePoint meshlib.EdgePoint.assignFromAnother ( meshlib.EdgePoint _other)

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

Calls MR_EdgePoint_AssignFromAnother().

◆ convertTo_bool()

boolean meshlib.EdgePoint.convertTo_bool ( )

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

Calls MR_EdgePoint_ConvertTo_bool().

◆ e()

meshlib.EdgeId meshlib.EdgePoint.e ( )

Returns a pointer to a member variable of class MR::EdgePoint named e. The reference to this object might be preserved as the return value.

Calls MR_EdgePoint_Get_e().

◆ getClosestVertex() [1/2]

meshlib.VertId meshlib.EdgePoint.getClosestVertex ( meshlib.MeshTopology topology)

returns one of two edge vertices, closest to this point Generated from method MR::EdgePoint::getClosestVertex.

Calls MR_EdgePoint_getClosestVertex_MR_MeshTopology().

◆ getClosestVertex() [2/2]

meshlib.VertId meshlib.EdgePoint.getClosestVertex ( meshlib.PolylineTopology topology)

returns one of two edge vertices, closest to this point Generated from method MR::EdgePoint::getClosestVertex.

Calls MR_EdgePoint_getClosestVertex_MR_PolylineTopology().

◆ inVertex() [1/3]

boolean meshlib.EdgePoint.inVertex ( )

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

Calls MR_EdgePoint_inVertex_0().

◆ inVertex() [2/3]

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

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

Calls MR_EdgePoint_inVertex_1_MR_MeshTopology().

◆ inVertex() [3/3]

meshlib.VertId meshlib.EdgePoint.inVertex ( meshlib.PolylineTopology topology)

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

Calls MR_EdgePoint_inVertex_1_MR_PolylineTopology().

◆ isBd()

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

returns true if the point is on the boundary of the region (or for whole mesh if region is nullptr) Generated from method MR::EdgePoint::isBd.

Calls MR_EdgePoint_isBd().

◆ moveToClosestVertex()

void meshlib.EdgePoint.moveToClosestVertex ( )

sets this to the closest end of the edge Generated from method MR::EdgePoint::moveToClosestVertex.

Calls MR_EdgePoint_moveToClosestVertex().

◆ opEqual()

boolean meshlib.EdgePoint.opEqual ( meshlib.EdgePoint rhs)

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

Calls MR_equal_MR_EdgePoint().

◆ opNotEqual()

boolean meshlib.EdgePoint.opNotEqual ( meshlib.EdgePoint rhs)

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

Calls MR_not_equal_MR_EdgePoint().

◆ setA()

void meshlib.EdgePoint.setA ( meshlib.SegmPointf value)

< a in [0,1], a=0 => point is in org( e ), a=1 => point is in dest( e ) Modifies a member variable of class MR::EdgePoint named a. The reference to the parameter value might be preserved in this object in element a.

Calls MR_EdgePoint_Set_a().

◆ setE()

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

Modifies a member variable of class MR::EdgePoint named e. The reference to the parameter value might be preserved in this object in element e.

Calls MR_EdgePoint_Set_e().

◆ sym()

meshlib.EdgePoint meshlib.EdgePoint.sym ( )

represents the same point relative to sym edge in Generated from method MR::EdgePoint::sym.

Calls MR_EdgePoint_sym().

◆ valid()

boolean meshlib.EdgePoint.valid ( )

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

Calls MR_EdgePoint_valid().


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