compas-dev / compas-dev/compas

this is a bug related to the degree of the curve

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

Description

request to fix issue related to forum discussion on Scene for NurbsCurve.
https://forum.compas-framework.org/t/scene-for-compas-rhino-geometry-curves-nurbs-rhinonurbscurve/794

code to recreate issue
```
from compas.datastructures import Mesh
from compas.geometry import Point, Vector, Line, Sphere, NurbsCurve
from compas.scene import Scene

arch = NurbsCurve.from_points([[5, 0, 0], [5, 5, 5], [5, 10, 0]])

print(type(arch))

scene = Scene()
scene.clear()
scene.add(arch)
scene.draw()
```
error message generated in my Windows 10PC with Rhino8.3 commercial version:
```

Traceback (most recent call last):
File "file:///C:/Users/Uday/OneDrive%20-%20sbp%20SE/Dokumente/coding/test4.py", line 10, in
File "C:\Users\Uday\.rhinocode\py39-rh8\site-envs\default-KA6C24DI\compas\scene\scene.py", line 304, in draw
drawn_objects += sceneobject.draw()
File "C:\Users\Uday\.rhinocode\py39-rh8\site-envs\default-KA6C24DI\compas_rhino\scene\curveobject.py", line 39, in draw
geometry.Transform(transformation_to_rhino(self.worldtransformation))
AttributeError: 'NoneType' object has no attribute 'Transform'
```

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.