eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.E3DSphere Class Reference

Represents a 3D sphere. More...

Public Member Functions

None __init__ (self)
 Creates an eVision.Easy3D.E3DSphere object.
None __init__ (self, eVision.Easy3D.E3DPoint center, float radius)
 Creates an eVision.Easy3D.E3DSphere object.
None __init__ (self, eVision.Easy3D.E3DPoint point1, eVision.Easy3D.E3DPoint point2, eVision.Easy3D.E3DPoint point3, eVision.Easy3D.E3DPoint point4)
 Creates an eVision.Easy3D.E3DSphere object.
None __init__ (self, eVision.Easy3D.E3DSphere other)
 Creates an eVision.Easy3D.E3DSphere object.
None Define (self, eVision.Easy3D.E3DPoint center, float radius)
 (re)Defines the sphere parameters:
None Define (self, eVision.Easy3D.E3DPoint point1, eVision.Easy3D.E3DPoint point2, eVision.Easy3D.E3DPoint point3, eVision.Easy3D.E3DPoint point4)
 (re)Defines the sphere parameters:
float DistanceTo (self, eVision.Easy3D.E3DPoint point)
 Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere.
eVision.Easy3D.E3DSphere Transform (self, eVision.Easy3D.E3DTransformMatrix matrix)
 Transforms the 3D sphere with the given transformation matrix.
None Load (self, str path)
 Loads a eVision.Easy3D.E3DSphere.
None Load (self, eVision.ESerializer|None serializer)
 Loads a eVision.Easy3D.E3DSphere.
None Save (self, str path)
 Saves a eVision.Easy3D.E3DSphere.
None Save (self, eVision.ESerializer|None serializer)
 Saves a eVision.Easy3D.E3DSphere.
eVision.Easy3D.E3DPoint Center (self)
 Gets the center point of the sphere.
float Radius (self)
 Gets the radius of the sphere.

Detailed Description

Represents a 3D sphere.

Remarks:

License(s): Easy3D

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.Easy3D.E3DSphere.__init__ ( self)

Creates an eVision.Easy3D.E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

◆ __init__() [2/4]

None eVision.Easy3D.E3DSphere.__init__ ( self,
eVision.Easy3D.E3DPoint center,
float radius )

Creates an eVision.Easy3D.E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ __init__() [3/4]

None eVision.Easy3D.E3DSphere.__init__ ( self,
eVision.Easy3D.E3DPoint point1,
eVision.Easy3D.E3DPoint point2,
eVision.Easy3D.E3DPoint point3,
eVision.Easy3D.E3DPoint point4 )

Creates an eVision.Easy3D.E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ __init__() [4/4]

None eVision.Easy3D.E3DSphere.__init__ ( self,
eVision.Easy3D.E3DSphere other )

Creates an eVision.Easy3D.E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
otherThe other eVision.Easy3D.E3DSphere that we will copy into this one.

Member Function Documentation

◆ Center()

eVision.Easy3D.E3DPoint eVision.Easy3D.E3DSphere.Center ( self)

Gets the center point of the sphere.

◆ Define() [1/2]

None eVision.Easy3D.E3DSphere.Define ( self,
eVision.Easy3D.E3DPoint center,
float radius )

(re)Defines the sphere parameters:

It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ Define() [2/2]

None eVision.Easy3D.E3DSphere.Define ( self,
eVision.Easy3D.E3DPoint point1,
eVision.Easy3D.E3DPoint point2,
eVision.Easy3D.E3DPoint point3,
eVision.Easy3D.E3DPoint point4 )

(re)Defines the sphere parameters:

It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ DistanceTo()

float eVision.Easy3D.E3DSphere.DistanceTo ( self,
eVision.Easy3D.E3DPoint point )

Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere.

Parameters
pointThe 3D point to measure the distance to.

◆ Load() [1/2]

None eVision.Easy3D.E3DSphere.Load ( self,
eVision.ESerializer | None serializer )

Loads a eVision.Easy3D.E3DSphere.

The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

None eVision.Easy3D.E3DSphere.Load ( self,
str path )

Loads a eVision.Easy3D.E3DSphere.

The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Radius()

float eVision.Easy3D.E3DSphere.Radius ( self)

Gets the radius of the sphere.

◆ Save() [1/2]

None eVision.Easy3D.E3DSphere.Save ( self,
eVision.ESerializer | None serializer )

Saves a eVision.Easy3D.E3DSphere.

The given ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

◆ Save() [2/2]

None eVision.Easy3D.E3DSphere.Save ( self,
str path )

Saves a eVision.Easy3D.E3DSphere.

The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Transform()

eVision.Easy3D.E3DSphere eVision.Easy3D.E3DSphere.Transform ( self,
eVision.Easy3D.E3DTransformMatrix matrix )

Transforms the 3D sphere with the given transformation matrix.

The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an isotropic scaling transform.

Parameters
matrixThe 3D transformation matrix.