compas_blender.conversions

This package provides functions to convert between COMPAS data/objects and Blender data/objects.

Functions

bmesh_to_compas

Convert a Blender BMesh to a COMPAS mesh.

circle_to_blender_curve

Convert a COMPAS circle to a Blender circle.

color_to_blender_material

Convert a COMPAS color to a Blender material.

cylinder_to_blender_mesh

Convert a COMPAS cylinder to a Blender mesh.

line_to_blender_curve

Convert a COMPAS line to a Blender curve.

mesh_to_blender

Convert a COMPAS mesh to a Blender mesh.

mesh_to_compas

Convert a Blender mesh to a COMPAS mesh.

meshobj_to_compas

Convert a Blender mesh object to a COMPAS mesh.

monkey_to_compas

Construct a COMPAS mesh from the Blender monkey.

nurbscurve_to_blender_curve

Convert a COMPAS NURBS curve to a Blender curve.

nurbssurface_to_blender_surface

Convert a COMPAS NURBS surface to a Blender surface.

pointcloud_to_blender

Convert a COMPAS pointcloud to a Blender pointcloud.

polygon_to_blender_mesh

Convert a list of vertices and faces to a Blender mesh.

polyline_to_blender_curve

Convert a COMPAS polyline to a Blender curve.

sphere_to_blender_mesh

Convert a COMPAS sphere to a Blender mesh.

transformation_to_blender

Convert a COMPAS transformation to a Blender transformation.

transformation_to_compas

Convert a Blender transformation to a COMPAS transformation.

vertices_and_faces_to_blender_mesh

Convert a list of vertices and faces to a Blender mesh.