compas_rhino.conversions

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

Classes

ConversionError

Raised when a conversion is not possible.

Functions

arc_to_compas

Convert a Rhino Arc Structure to a COMPAS Arc.

arc_to_rhino

Convert a COMPAS Arc to a Rhino one.

box_to_compas

Convert a Rhino box to a COMPAS box.

box_to_rhino

Convert a COMPAS box to a Rhino box.

brep_to_compas_box

Convert a Rhino brep to a COMPAS box.

brep_to_compas_cone

Convert a Rhino brep to a COMPAS cone.

brep_to_compas_cylinder

Convert a Rhino brep to a COMPAS cylinder.

brep_to_compas_sphere

Convert a Rhino brep to a COMPAS sphere.

brep_to_rhino

Convert a COMPAS brep to a Rhino brep.

capsule_to_rhino_brep

Convert a COMPAS capsule to a Rhino Brep.

circle_to_compas

Convert a Rhino circle to a COMPAS circle.

circle_to_rhino

Convert a COMPAS circle to a Rhino circle.

circle_to_rhino_curve

Convert a COMPAS circle to a Rhino curve.

cone_to_compas

Convert a Rhino cone to a COMPAS cone.

cone_to_rhino

Convert a COMPAS cone to a Rhino cone.

cone_to_rhino_brep

Convert a COMPAS cone to a Rhino Brep.

curve_to_compas_circle

Convert a Rhino curve to a COMPAS circle.

curve_to_compas_ellipse

Convert a Rhino curve to a COMPAS ellipse.

curve_to_compas_line

Convert a Rhino curve to a COMPAS line.

curve_to_compas_polyline

Convert a Rhino curve to a COMPAS polyline.

curve_to_rhino

Convert a COMPAS curve to a Rhino curve.

cylinder_to_compas

Convert a Rhino cylinder to a COMPAS cylinder.

cylinder_to_rhino

Convert a COMPAS cylinder to a Rhino cylinder.

cylinder_to_rhino_brep

Convert a COMPAS cylinder to a Rhino Brep.

data_to_rhino_surface

Convert a COMPAS surface to a Rhino surface.

ellipse_to_compas

Convert a Rhino ellipse to a COMPAS ellipse.

ellipse_to_rhino

Convert a COMPAS ellipse to a Rhino ellipse.

ellipse_to_rhino_curve

Convert a COMPAS ellipse to a Rhino curve.

extrusion_to_compas_box

Convert a Rhino extrusion to a COMPAS box.

extrusion_to_compas_cylinder

Convert a Rhino extrusion to a COMPAS cylinder.

extrusion_to_compas_torus

Convert a Rhino extrusion to a COMPAS torus.

frame_to_rhino

Convert a COMPAS frame to a Rhino plane.

frame_to_rhino_plane

Convert a COMPAS frame to a Rhino plane.

line_to_compas

Convert a Rhino line to a COMPAS line.

line_to_rhino

Convert a COMPAS line to a Rhino line.

line_to_rhino_curve

Convert a COMPAS line to a Rhino curve.

mesh_to_compas

Convert a Rhino mesh object to a COMPAS mesh.

mesh_to_rhino

Convert a COMPAS Mesh or a Polyhedron to a Rhino mesh object.

plane_to_compas

Convert a Rhino plane to a COMPAS plane.

plane_to_compas_frame

Convert a Rhino plane to a COMPAS frame.

plane_to_rhino

Convert a COMPAS plane to a Rhino plane.

point_to_compas

Convert a Rhino point to a COMPAS point.

point_to_rhino

Convert a COMPAS point to a Rhino point.

polygon_to_compas

Convert a Rhino polygon to a COMPAS polygon.

polygon_to_rhino

Convert a COMPAS polygon to a Rhino polygon.

polyhedron_to_rhino

Convert a COMPAS Mesh or a Polyhedron to a Rhino mesh object.

polyline_to_compas

Convert a Rhino polyline to a COMPAS polyline.

polyline_to_rhino

Convert a COMPAS polyline to a Rhino polyline.

polyline_to_rhino_curve

Convert a COMPAS polyline to a Rhino curve.

sphere_to_compas

Convert a Rhino sphere to a COMPAS sphere.

sphere_to_rhino

Convert a COMPAS sphere to a Rhino sphere.

surface_to_compas

Convert a Rhino surface to a COMPAS surface.

surface_to_compas_data

Convert a Rhino surface to a COMPAS surface.

surface_to_compas_mesh

Convert the surface b-rep loops to a COMPAS mesh.

surface_to_compas_quadmesh

Convert the surface to a COMPAS mesh.

surface_to_rhino

Convert a COMPAS surface to a Rhino surface.

torus_to_rhino

Convert a COMPAS torus to a Rhino torus.

torus_to_rhino_brep

Convert a COMPAS torus to a Rhino Brep.

transformation_matrix_to_rhino

Creates a Rhino transformation from a 4x4 transformation matrix.

transformation_to_rhino

Creates a Rhino transformation from a COMPAS transformation.

vector_to_compas

Convert a Rhino vector to a COMPAS vector.

vector_to_rhino

Convert a COMPAS vector to a Rhino vector.

vertices_and_faces_to_rhino

Convert COMPAS vertices and faces to a Rhino mesh object.