BHoM / BHoM/BHoM_Engine

Geometry_Engine: Addition of more geometry conversions

Open
#1,907 0 comments 0 reactions 2 assignees Claimed by @tg359 View on GitHub
severity:low size:S type:feature
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:

We're duplicating the methods below in other toolkits that convert between various forms of geometry and it'd be good to have them in a more accessible place. Some of these may already exist in some form elsewhere (and if that's the case please let me know where!), but we've got some methods in another toolkit that could be transplanted if not.

- `BH.Engine.Geometry.Convert.ToPolyline`
- `Mesh` - a set of closed polylines describing the faces of the mesh
- `Extrusion` - a closed polyline of the external edges of the extrusion
- `ISurface` - a closed polyline of the external/internal edges of the surface
- `Loft` - a closed polyline of the external edges of the loft
- `NurbsSurface` - a closed polyline of the external edges of the nurbs surface
- `PlanarSurface` - a closed polyline of the external/internal boundary of the planar surface
- `PolySurface` - a set of closed polylines describing the external/internal edges of the component ISurfaces

I'm finding that passing geometry between tools without API's requires reducing our objects down to their vertex representations, and extending these objects with a `ToPolyLine` method would greatly reduce the length of lines being written for geometry interop!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.