MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstSphere3f Class Reference
Inheritance diagram for mrmeshpy.ConstSphere3f:

Public Member Functions

bool __eq__ (self, ConstSphere3f b)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstSphere3f b)
float distance (self, ConstVector3f x)
float distanceSq (self, ConstVector3f x)
Vector3f project (self, ConstVector3f x)
ConstVector3f center (self)
float radius (self)

Static Protected Attributes

typing _offsetof_center = 0
typing _offsetof_radius = 12

Detailed Description

Generated from:  MR::Sphere3f
Aliases:  Features.Primitives.Sphere

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstSphere3f, c: meshlib.mrmeshpy.ConstVector3f, r: float) -> None

3. __init__(self: meshlib.mrmeshpy.ConstSphere3f, arg0: meshlib.mrmeshpy.ConstSphere3f) -> None

Implicit copy constructor.

4. __init__(self: meshlib.mrmeshpy.ConstSphere3f, : meshlib.mrmeshpy.ConstSphere3f) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstSphere3f.__eq__ ( self,
ConstSphere3f b )

◆ __ne__()

bool mrmeshpy.ConstSphere3f.__ne__ ( self,
ConstSphere3f b )

◆ center()

ConstVector3f mrmeshpy.ConstSphere3f.center ( self)

Reimplemented in mrmeshpy.Sphere3f, and mrmeshpy.Sphere3f.

◆ distance()

float mrmeshpy.ConstSphere3f.distance ( self,
ConstVector3f x )
returns signed distance from given point to this sphere:
positive - outside, zero - on sphere, negative - inside

◆ distanceSq()

float mrmeshpy.ConstSphere3f.distanceSq ( self,
ConstVector3f x )
returns squared distance from given point to this sphere

◆ project()

Vector3f mrmeshpy.ConstSphere3f.project ( self,
ConstVector3f x )
finds the closest point on sphere

◆ radius()

float mrmeshpy.ConstSphere3f.radius ( self)

Member Data Documentation

◆ _offsetof_center

typing mrmeshpy.ConstSphere3f._offsetof_center = 0
staticprotected

◆ _offsetof_radius

typing mrmeshpy.ConstSphere3f._offsetof_radius = 12
staticprotected

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