ddg package

Subpackages

Submodules

Module contents

ddg.to_halfedge(object_, **kwargs)[source]

Converts an object to a primitive halfedge surface depending to its type.

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

Convert an object to a smooth net.

Parameters:
object_ddg.geometry.Subspace, ddg.geometry.Point, ddg.geometry.Quadric

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.

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.nets.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.