ddg.conversion.halfedge.nets module
- ddg.conversion.halfedge.nets.discrete_net_to_halfedge(net, co_attr='co')[source]
Convert discrete net to halfedge.
The vertices of the halfedge object will have an attribute co_attr containing the values of the net. The order/index of vertices in the returned surface will be the same as in net.traverser.
- Parameters:
- netDiscreteNet, EmptyNet, PointNet or NetCollection containing these
- co_attrstr (default=’co’)
Name of coordinate attribute
- Returns:
- Surface
- ddg.conversion.halfedge.nets.discrete_domain_to_halfedge(domain, co_attr='co')[source]
Convert a discrete domain to a halfedge object.
The vertices of the halfedge object will have an attribute co_attr containing the values from domain.traverser. The order/index of vertices in the returned surface will be the same as in domain.traverser.
- Parameters:
- domainDiscreteDomain or EmptyDomain
- co_attrstr (default=’co’)
Name of coordinate attribute
- Returns:
- Surface