Crash in Octree::grow_to_accomodate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
peekabot |
Fix Committed
|
Undecided
|
Staffan Gimåker |
Bug Description
I'm getting crashes in Peekabot 0.7.2 after I added the following esoteric code to my program:
peekabot:
normp.
normp.
normp.
normp.
normp.
normp.
normp.
The error I get is
peekabot: renderer/
The values sent to set_orientation above are (-1,0,0) when the crash happens. The translate arguments evaluate to (-0.115, 0.04499999999998, 1.2599999713897
Taking out the set_orientation line averts the crash.
Related branches
Changed in peekabot: | |
status: | New → Confirmed |
assignee: | nobody → Staffan Gimåker (gimaker) |
Fixed in the 0.7.x branch.
Note that setting the orientation in this particular case (when the original orientation is parallel to the desired orientation) is ambiguous. I added some documentation stating how this ambiguity is resolved; we choose to always rotate about the object's Z axis in case of ambiguity. E.g. calling set_orientation(-1, 0, 0) on an object with the axes x=(1,0,0), y=(0,1,0) and z=(0,0,1) will yield x'=(-1,0,0), y'=(0,-1,0) and z'=(0,0,1).