compas_point_to_occ_point

compas_occ.conversions.compas_point_to_occ_point(point)[source]

Convert a COMPAS point to an OCC point.

Parameters

point (Point) – The COMPAS point to convert.

Returns

gp_Pnt

Examples

>>> from compas.geometry import Point
>>> Point.to_occ = compas_point_to_occ_point
>>> point = Point(0, 0, 0)
>>> point.to_occ()
<class 'gp_Pnt'>