RubendeBruin / DAVE

DAVE - Design Analysis Visualization and Engineering
Mozilla Public License 2.0
29 stars 7 forks source link

Dragging a circle in the node-tree errors #114

Closed RubendeBruin closed 1 year ago

RubendeBruin commented 1 year ago
# code for een
s.new_point(name='een',
          position=(0,
                    0,
                    0))

# code for twee
s.new_point(name='twee',
          position=(10,
                    0,
                    0))

# code for Point
s.new_point(name='Point',
          position=(2.732,
                    -0.869,
                    -7.2))

# code for cir
s.new_circle(name='cir',
            parent='twee',
            axis=(0, 1, 0),
            radius=0.5 )

# code for Circle
s.new_circle(name='Circle',
            parent='Point',
            axis=(0, 1, 0),
            radius=1 )

# code for cir_1
s.new_circle(name='cir_1',
            parent='een',
            axis=(0, 1, 0),
            radius=0.5 )

s['cir_1'].change_parent_to(s['een'])

'Point' object has no attribute 'to_loc_position'

When running:

s['cir_1'].change_parent_to(s['een'])