ladybug_rhino.fromgeometry module

Functions to translate from Ladybug geometries to Rhino geometries.

ladybug_rhino.fromgeometry.from_arc2d(arc, z=0)[source]

Rhino Arc from ladybug Arc2D.

ladybug_rhino.fromgeometry.from_arc3d(arc)[source]

Rhino Arc from ladybug Arc3D.

ladybug_rhino.fromgeometry.from_cone(cone)[source]

Rhino Cone from ladybug Cone.

ladybug_rhino.fromgeometry.from_cylinder(cylinder)[source]

Rhino Cone from ladybug Cone.

ladybug_rhino.fromgeometry.from_face3d(face)[source]

Rhino Brep from ladybug Face3D.

ladybug_rhino.fromgeometry.from_face3d_to_solid(face, offset)[source]

Rhino Solid Brep from a ladybug Face3D and an offset from the base face.

Parameters:
  • face – Ladybug geometry Face3D object.

  • offset – Number for the offset distance from the base face.

ladybug_rhino.fromgeometry.from_face3d_to_wireframe(face)[source]

Rhino PolyLineCurves from ladybug Face3D.

Parameters:

face – A Ladybug Face3D object to be translated to a wireframe.

Returns:

A list of Rhino polyline curves for the boundary and holes in the face.

ladybug_rhino.fromgeometry.from_face3ds_to_colored_mesh(faces, color)[source]

Colored Rhino mesh from an array of ladybug Face3D and ladybug Color.

This is used in workflows such as coloring Model geometry with results.

ladybug_rhino.fromgeometry.from_face3ds_to_joined_brep(faces)[source]

A list of joined Breps from an array of ladybug Face3D.

ladybug_rhino.fromgeometry.from_linesegment2d(line, z=0)[source]

Rhino LineCurve from ladybug LineSegment2D.

ladybug_rhino.fromgeometry.from_linesegment3d(line)[source]

Rhino LineCurve from ladybug LineSegment3D.

ladybug_rhino.fromgeometry.from_mesh2d(mesh, z=0)[source]

Rhino Mesh from ladybug Mesh2D.

ladybug_rhino.fromgeometry.from_mesh2d_to_outline(mesh, z=0)[source]

Rhino Polylines from the faces of ladybug Mesh2D.

ladybug_rhino.fromgeometry.from_mesh3d(mesh)[source]

Rhino Mesh from ladybug Mesh3D.

ladybug_rhino.fromgeometry.from_mesh3d_to_outline(mesh)[source]

Rhino Mesh and Polylines from the ladybug Mesh3D.

Returns:

A tuple with two items - a Rhino Mesh first followed by outline curves of the Mesh.

ladybug_rhino.fromgeometry.from_mesh3d_to_wireframe(mesh)[source]

Rhino PolyLineCurves from ladybug Mesh3D.

Parameters:

mesh – A Ladybug Mesh3D object to be translated to a wireframe.

Returns:

A list of Rhino polyline curves for the mesh edges.

ladybug_rhino.fromgeometry.from_mesh3ds_to_colored_mesh(meshes, color)[source]

Colored Rhino mesh from an array of ladybug Mesh3D and ladybug Color.

This is used in workflows such as coloring Model geometry with results.

ladybug_rhino.fromgeometry.from_plane(pl)[source]

Rhino Plane from ladybug Plane.

ladybug_rhino.fromgeometry.from_point2d(point, z=0)[source]

Rhino Point3d from ladybug Point2D.

ladybug_rhino.fromgeometry.from_point3d(point)[source]

Rhino Point3d from ladybug Point3D.

ladybug_rhino.fromgeometry.from_polyface3d(polyface)[source]

Rhino Brep from ladybug Polyface3D.

ladybug_rhino.fromgeometry.from_polyface3d_to_wireframe(polyface)[source]

Rhino PolyLineCurve from ladybug Polyface3D.

ladybug_rhino.fromgeometry.from_polygon2d(polygon, z=0)[source]

Rhino closed PolyLineCurve from ladybug Polygon2D.

ladybug_rhino.fromgeometry.from_polyline2d(polyline, z=0)[source]

Rhino closed PolyLineCurve from ladybug Polyline2D.

ladybug_rhino.fromgeometry.from_polyline2d_to_joined_polyline(polylines, z=0)[source]

Rhino PolylineCurve made by joining list of Polyline2D.

Parameters:
  • polylines – An array of Ladybug Polyline2D or LineSegment2D to be joined into a polyline. This can also be an array with a single Polygon2D.

  • z – A number for the Z-coordinate. (Default: 0).

Returns:

A Rhino brep constructed from the polygon and the offset distance. If offset is unsuccessful, just the polyline will be returned.

ladybug_rhino.fromgeometry.from_polyline2d_to_offset_brep(polylines, offset, z=0)[source]

Rhino Brep made by offsetting a joined list of Polyline2D inward.

Parameters:
  • polylines – An array of Ladybug Polyline2D or LineSegment2D to be joined and translated to an offset Brep. This can also be an array with a single Polygon2D.

  • offset – A number for the distance to offset the Polygon inward.

  • z – A number for the Z-coordinate. (Default: 0).

Returns:

A Rhino brep constructed from the polygon and the offset distance. If offset is unsuccessful, just the polyline will be returned.

ladybug_rhino.fromgeometry.from_polyline3d(polyline)[source]

Rhino closed PolyLineCurve from ladybug Polyline3D.

ladybug_rhino.fromgeometry.from_ray2d(ray, z=0)[source]

Rhino Ray3d from ladybug Ray2D.

ladybug_rhino.fromgeometry.from_ray3d(ray)[source]

Rhino Ray3d from ladybug Ray3D.

ladybug_rhino.fromgeometry.from_sphere(sphere)[source]

Rhino Sphere from ladybug Sphere.

ladybug_rhino.fromgeometry.from_vector2d(vector)[source]

Rhino Vector3d from ladybug Vector2D.

ladybug_rhino.fromgeometry.from_vector3d(vector)[source]

Rhino Vector3d from ladybug Vector3D.