compas_occ.conversions

None

Functions

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.

ax2_to_compas

Construct a COMPAS frame from an OCC position.

ax3_to_compas

Construct a COMPAS frame from an OCC position.

axis_to_compas

Convert an OCC axis to a tuple of COMPAS point and vector.

axis_to_compas_vector

Convert an OCC axis to a COMPAS vector.

axis_to_occ

Convert a COMPAS point and vector to an OCC axis.

bezier_to_compas

Construct a COMPAS Bezier curve from an OCC Bezier curve.

bspline_to_compas

Construct a COMPAS NURBS curve from an OCC B-spline curve.

circle_to_compas

Construct a COMPAS circle from an OCC circle.

circle_to_occ

Construct an OCC circle from a COMPAS circle.

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_transformation_to_trsf

Convert a COMPAS transformation to a OCC transformation.

compas_trimesh_to_occ_shell

Convert a COMPAS triangle mesh to an OCC shell.

cone_to_occ

Convert a COMPAS cone to an OCC cone.

cylinder_to_compas

Convert an OCC cylinder to a COMPAS cylinder.

cylinder_to_occ

Convert a COMPAS cylinder to an OCC cylinder.

direction_to_compas

Construct a COMPAS vector from an OCC direction.

direction_to_occ

Convert a COMPAS vector to an OCC direction.

ellipse_to_compas

Construc a COMPAS ellipse from an OCC ellipse.

ellipse_to_occ

Construct an OCC ellipse from a COMPAS ellipse.

floats2_from_array2

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

frame_to_occ_ax2

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

frame_to_occ_ax3

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

harray1_from_points1

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

hyperbola_to_compas

Construct a COMPAS hyperbola from an OCC hyperbola.

line_to_compas

Convert an OCC line to a COMPAS line.

line_to_occ

Convert a COMPAS line to an OCC line.

location_to_compas

Construct a COMPAS frame from an OCC location.

ngon_to_face

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

parabola_to_compas

Construct a COMPAS parabola from an OCC parabola.

plane_to_compas

Convert an OCC plane to a COMPAS plane.

plane_to_occ

Convert a COMPAS plane to an OCC plane.

plane_to_occ_ax2

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

plane_to_occ_ax3

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

point2d_to_compas

Construct a COMPAS point from an OCC 2D point.

point_to_compas

Construct a COMPAS point from an OCC point.

point_to_occ

Convert a COMPAS point to an OCC point.

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.

quad_to_face

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

sphere_to_compas

Convert an OCC sphere to a COMPAS sphere.

sphere_to_occ

Convert a COMPAS sphere to an OCC sphere.

torus_to_occ

Convert a COMPAS torus to an OCC torus.

triangle_to_face

Convert a triangle to a BRep face.

vector2d_to_compas

Construct a COMPAS vector from an OCC 2D vector.

vector_to_compas

Construct a COMPAS vector from an OCC vector.

vector_to_occ

Convert a COMPAS vector to an OCC vector.