The compas_blender.conversions module provides a suite of functions to bridge the gap between COMPAS data structures and Blender objects. It supports conversions for meshes, curves, surfaces, point clouds, transformations, and materials.
Common conversion directions include:
- COMPAS to Blender:
mesh_to_blender, meshobj_to_compas (for specific object types), pointcloud_to_blender, sphere_to_blender_mesh, polyline_to_blender_curve, transformation_to_blender, and color_to_blender_material. - Blender to COMPAS:
bmesh_to_compas, mesh_to_compas, meshobj_to_compas, nurbscurve_to_blender_curve (and related NURBS types), and transformation_to_compas.