compas-dev / compas-dev/compas

Independent Rhino Obj -> Compas Obj converter based on rhino3dm

Open
#1,342 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
386
Forks
122
Avg merge
11d 46m
Merged PRs (30d)
1

Description

# Feature Request

As a [role], I want an independent converter so that I can convert Rhino Obj -> Compas Obj outside Rhino Env.

## Details
![image](https://github.com/compas-dev/compas/assets/1921878/2600cc74-79eb-48ad-9bc3-06dcaf329cc2)

**Is your feature request related to a problem? Please describe.**
With the [Hops](https://github.com/mcneel/compute.rhino3d/tree/8.x/src/ghhops-server-py) plugin, users are able to send Rhino Object to a remote / local HTTP server and process all computation outside Rhino. (whether it is geometry related or not).

However, if main computation is conducted with `compas`, we need to convert Rhino Object to Compas Object now outside Rhino, whereas the [conversion functions](https://compas.dev/compas/latest/api/compas_rhino.conversions.html) provided by `compas_rhino` has to be run inside a Rhino Environment.

**Describe the solution you'd like**
While McNeel provides open-sourced [rhino3dm](https://github.com/mcneel/rhino3dm) for basic Rhino Obj processing, it is possible to conduct whole computation/conversion outside Rhino Environment, and only use Rhino as Input + Visualizer.
It is possible to remove the dependency of `Rhino` module for `compas_rhino.conversion`, and allow users to convert objects in pure Cython environment.

**Describe alternatives you've considered**
Additional python script to convert Rhino Obj inside GH before connecting to Hops. Though not ideal.

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.