location_to_compas

compas_occ.conversions.location_to_compas(location)

Construct a COMPAS frame from an OCC location.

Parameters:
locationTopLoc_Location

The OCC location.

Returns:
Frame

Examples

>>> from OCC.Core.TopLoc import TopLoc_Location
>>> from compas_occ.conversions import location_to_compas
>>> location = TopLoc_Location()
>>> location_to_compas(location)
Frame(point=Point(x=0.0, y=0.0, z=0.0), xaxis=Vector(x=1.0, y=0.0, z=0.0), yaxis=Vector(x=0.0, y=1.0, z=0.0))