ddg.conversion.nets.core module

ddg.conversion.nets.core.to_smooth_net(object_, domain=None, **kwargs)[source]

Convert an object to a smooth net.

Parameters:
object_Subspace, Point, Quadric, Intersection or Join

Object to be converted. Currently supported:

  • Subspace and Point in any ambient space,

  • Quadric contained in 1D, 2D and 3D subspaces in any ambient space,

  • Intersection and Join. These will be resolved and converted if resolving produces an object of a different, supported type.

domainlist or SmoothDomain (default=None)

Optionally a domain to assign to the net. If domain is not contained in the default domain, they are intersected and a warning is raised. Uses ddg.datastructures.nets.utils.create_subdomain().

**kwargsdict

Keyword arguments to be passed to the type-specific conversion. See submodules for available options.

Returns:
SmoothNet, SmoothCurve, PointNet or EmptyNet
Raises:
TypeError

If object has a type for which conversion is not possible.

Warns:
RuntimeWarning

If domain is not contained in the default domain of the object.