compas_occ.conversions

Arrays

array1_from_floats1

Construct a one-dimensional float array from a list of floats.

array1_from_integers1

Construct a one-dimensional integer array from a list of integers.

array1_from_points1

Construct a one-dimensional point array from a list of points.

array2_from_floats2

Construct a two-dimensional real array from a list of lists of floats.

array2_from_points2

Construct a two-dimensional point array from a list of lists of points.

floats2_from_array2

Construct a list of lists of floats from two-dimensional real array.

harray1_from_points1

Construct a horizontal one-dimensional point array from a list of points.

points1_from_array1

Construct a list of points from a one-dimensional point array.

points2_from_array2

Construct a list of lists of points from two-dimensional point array.

Primitives

compas_circle_from_occ_circle

Construct a COMPAS circle from an OCC circle.

compas_circle_to_occ_circle

Construct an OCC circle from a COMPAS circle.

compas_cone_to_occ_cone

Convert a COMPAS cone to an OCC cone.

compas_cylinder_from_occ_cylinder

Convert an OCC cylinder to a COMPAS cylinder.

compas_cylinder_to_occ_cylinder

Convert a COMPAS cylinder to an OCC cylinder.

compas_frame_from_occ_ax3

Construct a COMPAS frame from an OCC position.

compas_line_from_occ_line

Convert an OCC line to a COMPAS line.

compas_line_to_occ_line

Convert a COMPAS line to an OCC line.

compas_plane_from_occ_plane

Convert an OCC plane to a COMPAS plane.

compas_point_from_occ_point

Construct a COMPAS point from an OCC point.

compas_point_from_occ_point2d

Construct a COMPAS point from an OCC 2D point.

compas_plane_to_occ_plane

Convert a COMPAS plane to an OCC plane.

compas_point_to_occ_point

Convert a COMPAS point to an OCC point.

compas_plane_to_occ_ax2

Convert a COMPAS plane to a right-handed OCC coordinate system.

compas_plane_to_occ_ax3

Convert a COMPAS plane to a right-handed OCC coordinate system.

compas_sphere_to_occ_sphere

Convert a COMPAS sphere to an OCC sphere.

compas_torus_to_occ_torus

Convert a COMPAS torus to an OCC torus.

compas_vector_from_occ_axis

Convert an OCC axis to a COMPAS vector.

compas_vector_from_occ_vector

Construct a COMPAS vector from an OCC vector.

compas_vector_from_occ_vector2d

Construct a COMPAS vector from an OCC 2D vector.

compas_vector_to_occ_vector

Convert a COMPAS vector to an OCC vector.

compas_vector_to_occ_direction

Convert a COMPAS vector to an OCC direction.

Transformations

compas_transformation_to_trsf

Meshes

compas_mesh_to_occ_shell

Convert a general COMPAS mesh to an OCC shell.

compas_quadmesh_to_occ_shell

Convert a COMPAS quad mesh to an OCC shell.

compas_trimesh_to_occ_shell

Convert a COMPAS triangle mesh to an OCC shell.

ngon_to_face

Convert a Ngon to a BRep face with an underlying best-fit surface.

quad_to_face

Convert a quad to a BRep face with an underlying ruled surface.

triangle_to_face

Convert a triangle to a BRep face.