MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.Features Class Reference

Classes

class  MeasureResult
 
class  Primitives
 
class  SubfeatureInfo
 
class  Traits
 

Static Public Member Functions

None forEachSubfeature (std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane feature, func_void_from_Features_SubfeatureInfo func)
 
Features.MeasureResult measure (std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane a, std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane b)
 
str name (std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane var)
 
Features.Primitives.ConeSegment primitiveCircle (Vector3f point, Vector3f normal, float rad)
 
Features.Primitives.ConeSegment primitiveCone (Vector3f a, Vector3f b, float rad)
 
Features.Primitives.ConeSegment primitiveCylinder (Vector3f a, Vector3f b, float rad)
 
std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane primitiveFromObject (Object object)
 
std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane primitiveFromObjectWithWorldXf (Object object)
 
FeatureObject primitiveToObject (std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane primitive, float infiniteExtent)
 
Sphere3f toPrimitive (Vector3f point)
 
Sphere3f toPrimitive (Sphere3f sphere)
 
Features.Primitives.ConeSegment toPrimitive (Line3f line)
 
Features.Primitives.ConeSegment toPrimitive (LineSegm3f segm)
 
Features.Primitives.ConeSegment toPrimitive (Cylinder3f cyl)
 
Features.Primitives.ConeSegment toPrimitive (Cone3f cone)
 
str toString (Features.MeasureResult.Status status)
 
Features.Primitives.ConeSegment transformPrimitive (AffineXf3f xf, Features.Primitives.ConeSegment primitive)
 
std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane transformPrimitive (AffineXf3f xf, std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane primitive)
 
Sphere3f transformPrimitive (AffineXf3f xf, Sphere3f primitive)
 
Features.Primitives.Plane transformPrimitive (AffineXf3f xf, Features.Primitives.Plane primitive)
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ forEachSubfeature()

Decomposes a feature to its subfeatures, by calling `func()` on each subfeature.
This only returns the direct subfeatures. You can call this recursively to obtain all features,
  but beware of duplicates (there's no easy way to filter them).

◆ measure()

◆ name()

Same but for a variant.

◆ primitiveCircle()

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.primitiveCircle ( Vector3f point,
Vector3f normal,
float rad )
static
`normal` doesn't need to be normalized.

◆ primitiveCone()

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.primitiveCone ( Vector3f a,
Vector3f b,
float rad )
static
`a` is the center of the base, `b` is the pointy end.

◆ primitiveCylinder()

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.primitiveCylinder ( Vector3f a,
Vector3f b,
float rad )
static
`a` and `b` are centers of the sides.

◆ primitiveFromObject()

std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane meshlib.mrmeshpy.Features.primitiveFromObject ( Object object)
static
Returns null if the object type is unknown. This overload ignores the parent xf.

◆ primitiveFromObjectWithWorldXf()

std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane meshlib.mrmeshpy.Features.primitiveFromObjectWithWorldXf ( Object object)
static
Returns null if the object type is unknown. This overload respects the parent's `worldXf()`.

◆ primitiveToObject()

FeatureObject meshlib.mrmeshpy.Features.primitiveToObject ( std_variant_Sphere_Vector3_float_Features_Primitives_ConeSegment_Features_Primitives_Plane primitive,
float infiniteExtent )
static
Can return null on some primitive configurations.
`infiniteExtent` is how large we make "infinite" objects. Half-infinite objects divide this by 2.

◆ toPrimitive() [1/6]

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.toPrimitive ( Cone3f cone)
static

◆ toPrimitive() [2/6]

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.toPrimitive ( Cylinder3f cyl)
static

◆ toPrimitive() [3/6]

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.toPrimitive ( Line3f line)
static

◆ toPrimitive() [4/6]

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.toPrimitive ( LineSegm3f segm)
static

◆ toPrimitive() [5/6]

Sphere3f meshlib.mrmeshpy.Features.toPrimitive ( Sphere3f sphere)
static

◆ toPrimitive() [6/6]

Sphere3f meshlib.mrmeshpy.Features.toPrimitive ( Vector3f point)
static
Those map various MR types to our primitives. Some of those are identity functions.

◆ toString()

str meshlib.mrmeshpy.Features.toString ( Features.MeasureResult.Status status)
static
`MeasureResult::Status` enum to string.

◆ transformPrimitive() [1/4]

Features.Primitives.ConeSegment meshlib.mrmeshpy.Features.transformPrimitive ( AffineXf3f xf,
Features.Primitives.ConeSegment primitive )
static

◆ transformPrimitive() [2/4]

Features.Primitives.Plane meshlib.mrmeshpy.Features.transformPrimitive ( AffineXf3f xf,
Features.Primitives.Plane primitive )
static

◆ transformPrimitive() [3/4]

Sphere3f meshlib.mrmeshpy.Features.transformPrimitive ( AffineXf3f xf,
Sphere3f primitive )
static
Transform a primitive by an xf.
Non-uniform scaling and skewing are not supported.

◆ transformPrimitive() [4/4]


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