ddg.conversion.nets.geometry.quadrics module
- ddg.conversion.nets.geometry.quadrics.quadric_to_smooth_net(quadric, affine=False, affine_component=-1)[source]
Convert a quadric to a smooth net.
Currently supported are all quadrics contained in lines, planes or 3D subspaces.
- Parameters:
- quadricQuadric
- affinebool (default=False)
Whether the resulting net should return affine or homogeneous coordinates.
- affine_componentint (default=-1)
Used to determine parametrization and optionally dehomogenize. This is one of the rare cases where this has an effect even if affine=False.
- Returns:
- SmoothNet, SmoothCurve, EmptyNet, PointNet or NetCollection
Resulting smooth net.