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. | |
| 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.
| 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.
| center | The center of the sphere. |
| radius | The radius of the sphere. |
| 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.
| point1 | First points on the surface of the sphere. |
| point2 | Second points on the surface of the sphere. |
| point3 | Third points on the surface of the sphere. |
| point4 | Fourth points on the surface of the sphere. |
| 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.
| other | The other eVision.Easy3D.E3DSphere that we will copy into this one. |
| eVision.Easy3D.E3DPoint eVision.Easy3D.E3DSphere.Center | ( | self | ) |
Gets the center point of the sphere.
| 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.
| center | The center of the sphere. |
| radius | The radius of the sphere. |
| 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.
| point1 | First points on the surface of the sphere. |
| point2 | Second points on the surface of the sphere. |
| point3 | Third points on the surface of the sphere. |
| point4 | Fourth points on the surface of the sphere. |
| 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.
| point | The 3D point to measure the distance to. |
| None eVision.Easy3D.E3DSphere.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Loads a eVision.Easy3D.E3DSphere.
The given ESerializer must have been created for reading.
| serializer | The serializer. |
| None eVision.Easy3D.E3DSphere.Load | ( | self, | |
| str | path ) |
Loads a eVision.Easy3D.E3DSphere.
The given ESerializer must have been created for reading.
| path | The file path. |
| float eVision.Easy3D.E3DSphere.Radius | ( | self | ) |
Gets the radius of the sphere.
| None eVision.Easy3D.E3DSphere.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Saves a eVision.Easy3D.E3DSphere.
The given ESerializer must have been created for writing.
| serializer | The eVision.ESerializer object that is written to. |
| None eVision.Easy3D.E3DSphere.Save | ( | self, | |
| str | path ) |
Saves a eVision.Easy3D.E3DSphere.
The given ESerializer must have been created for writing.
| path | The file path. |
| 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.
| matrix | The 3D transformation matrix. |