ladybug_rhino.fromgeometry module¶
Functions to translate from Ladybug geometries to Rhino geometries.
- 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_to_outline(mesh, z=0)[source]¶
Rhino Polylines from the faces of ladybug Mesh2D.
- 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_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.