compas_occ.conversions

Arrays

array1_from_floats1

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

array2_from_floats2

Construct a two-dimensional real array from a list of lists 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_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.

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_point_to_occ_point

Convert a COMPAS point to an OCC point.

compas_point_from_occ_point

Construct a COMPAS point from an OCC point.

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.

compas_vector_from_occ_vector

Construct a COMPAS vector from an OCC vector.

compas_line_to_occ_line

Convert a COMPAS line to an OCC line.

compas_frame_from_occ_position

Construct a COMPAS frame from an OCC position.

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.