ddg.conversion.nets.geometry.spheres module
- ddg.conversion.nets.geometry.spheres.sphere_to_smooth_net(sphere)[source]
Sphere to smooth net dispatcher.
- Parameters:
- sphereEuclidean sphere or any QuadricSphere
- Returns:
- SmoothNet
- Raises:
- NotImplementedError
If type of sphere is not recognized.
- ddg.conversion.nets.geometry.spheres.euclidean_sphere_to_smooth_net(s)[source]
Converts a two-dimensional sphere in three-dimensional ambient space to a smooth net.
- Parameters:
- sddg.Sphere
A two-dimensional sphere in three-dimensional projective space.
- Returns:
- ddg.nets.SmoothNet
A parameter-dependent smooth net.
- Raises:
- ValueError
If the given sphere is not a two-dimensional sphere in three-dimensional projective space.
- NotImplementedError
If center of the sphere is a point at infinity.
Notes
The resulting SmoothNet object depends the radius and the center of the sphere as parameters.
- ddg.conversion.nets.geometry.spheres.euclidean_circle_to_smooth_net(c)[source]
Converts a circle in n-dimensional space to a smooth curve.
- Parameters:
- cddg.Sphere
A one-dimensional sphere in n-dimensional projective space.
- Returns:
- ddg.nets.SmoothCurve
A parameter-dependent smooth curve.
- Raises:
- ValueError
If the given sphere is not a circle in n-dimensional projective space.
- NotImplementedError
If center of the circle is a point at infinity.
Notes
The resulting SmoothCurve object depends on the following parameters: the radius of the circle, the center of the circle and optionally (if the ambient dimension is greater than 2) the normals of its defining plane.