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:
Quadriccontained in 1D, 2D and 3D subspaces in any ambient space,IntersectionandJoin. 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
domainis not contained in the default domain, they are intersected and a warning is raised. Usesddg.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
domainis not contained in the default domain of the object.