Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region hatch conversions #643

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open

Conversation

KatKatKateryna
Copy link
Member

@KatKatKateryna KatKatKateryna commented Mar 5, 2025

Description

Conversion toSpeckle and toHost for Hatches in Rhino.

New Region geometry class in the hostApps is usually called Region or Polygon (pure geometry), or Hatch ("region" with a pattern or gradient fill). The property "hasHatchPattern" on Region objects indicates which one it is. If the host app only supports one type, conversion defaults to that 1 type. Like in case with Rhino: it only supports Hatch, so any Region from Speckle is received as Hatch in Rhino.

Currently the displayValue is a list of combined boundary and loop curves. We hope that in the future the Viewer can support this geometry and create a fill in the Viewer, without the need to generate and send an extra Mesh.

Example converter data from Rhino: https://app.speckle.systems/projects/16ce7b208c/models/e9f8edeb13@8b70e50737

User Value

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

@KatKatKateryna KatKatKateryna marked this pull request as ready for review March 5, 2025 22:19
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.

1 participant