Utilities

compas_mrr.utils.rgpoint_to_cgpoint(pt: Rhino.Geometry.Point3d) compas.geometry.Point[source]

Convert Rhino.Geometry.Point3d to compas.geometry.Point.

Parameters:

pt – Plane object to convert

Return type:

Resulting point object

compas_mrr.utils.cgpoint_to_rgpoint(pt: compas.geometry.Point) Rhino.Geometry.Point3d[source]

Convert compas.geometry.Point to Rhino.Geometry.Point.

compas_mrr.utils.cgframe_to_rgplane(frame: compas.geometry.Frame) Rhino.Geometry.Plane[source]

Convert compas.Geometry.Frame to Rhino.Geometry.Plane.

compas_mrr.utils.rgtransform_to_cgtransformation(rgT: Rhino.Geometry.Transform) compas.geometry.Transformation[source]

Convert Rhino.Geometry.Transform to compas.geometry.Transformation.

compas_mrr.utils.rgtransform_to_matrix(rgT: Rhino.Geometry.Transform) List[List[float]][source]

Convert Rhino.Geometry.Transform to transformation matrix.

compas_mrr.utils.cgtransformation_to_rgtransform(cgT: compas.geometry.Transformation) Rhino.Geometry.Transform[source]

Convert compas.geometry.Transformation to Rhino.Geometry.Transform.

compas_mrr.utils.matrix_to_rgtransform(M: List[List[float]]) Rhino.Geometry.Transform[source]

Create Rhino.Geometry.Transform from a transformation matrix.