BHoM / BHoM/BHoM_Engine

Base_Engine: base IGeometry() method should accept IObject?

Open
#1,712 0 comments 0 reactions 1 assignee Claimed by @alelom View on GitHub
type:feature type:question
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:

I can't see why we have a nice [`private` `Geometry()` method that accepts `object`](https://github.com/BHoM/BHoM_Engine/blob/f0be1da5815d42e425b0b8195c91cccab15ae6ae/BHoM_Engine/Query/Geometry.cs#L63-L85), while the [`public IGeometry()` interface method accepts only IBHoMObject](https://github.com/BHoM/BHoM_Engine/blob/f0be1da5815d42e425b0b8195c91cccab15ae6ae/BHoM_Engine/Query/Geometry.cs#L37-L40).

I'd like to use the logic of the private method.

### Suggestion
Make the public interface method `IGeometry()` to accept IObject (or possibly even `System.Object`?).

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.