ddg.conversion.blender.halfedge module
- ddg.conversion.blender.halfedge.hes_to_bmesh(hes, co_attr='co', bpy_data=None)[source]
Converts a given half-edge surface into a bmesh.
The returned bmesh can then be used for handing over the surface to Blender.
- Parameters:
- hesddg.halfedge.Surface
The half-edge surface that shall be converted to a bmesh.
- co_attrcoordinate attribute
The type of coordinates that will be taken for conversion.
- bpy_databmesh (optional, default=None)
When given, bmesh to save the data into.
- Returns
- ——-
- bmesh
The bmesh corresponding to the input half-edge surface.
- ddg.conversion.blender.halfedge.face_objects(heobj, bobj, collection=None, location_attr='co', rotation_attr=None, scale_attr=None, material_attr=None)[source]
places a Blender object at every face of the given half-edge object.
- Parameters:
- see vertex_object.
- Returns:
- vobjs: list
- list of Blender objects placed at each face of given half-edge object.
Notes
Half-edge face’s does not natively store a location attribute this must be calculated and added as an attribute before hand.