Skip to content

feat: RhinoObject #473

Open
dogukankaratas wants to merge 2 commits intomainfrom
dogukan/rhino-objects
Open

feat: RhinoObject #473
dogukankaratas wants to merge 2 commits intomainfrom
dogukan/rhino-objects

Conversation

@dogukankaratas
Copy link
Copy Markdown
Contributor

@dogukankaratas dogukankaratas commented Apr 20, 2026

Rhino connector was sending raw geometry directly into collections. This PR is creating the RhinoObject to align Rhino with other connectors.

The rawEncoding field holds the native 3dm blob so Breps/Extrusions/SubDs can roundtrip back to their original form on receive, while displayValue carries mesh primitives for the viewer.

Related connectors PR: specklesystems/speckle-sharp-connectors#1371

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.40%. Comparing base (d134638) to head (bea06cd).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Speckle.Objects/Data/RhinoObject.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #473      +/-   ##
==========================================
- Coverage   71.44%   71.40%   -0.04%     
==========================================
  Files         353      354       +1     
  Lines       14332    14333       +1     
  Branches     1209     1209              
==========================================
- Hits        10239    10235       -4     
- Misses       3697     3700       +3     
- Partials      396      398       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dogukankaratas dogukankaratas marked this pull request as ready for review April 20, 2026 18:55
{
public required string type { get; set; }

public required string units { get; set; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an amazing happy that we have units both on the DataObject and the geometry...
but we appear to do this pattern for other DataObjects (revit, civil etc..)... so we should continue.
Units in Speckle have always suffered from excessive and ambiguous redundancy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not expecting a response, I'm just grumbling 😁


public interface IRhinoObject : IDataObject
{
string type { get; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not include RawEncoding and units here?
just curious?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants