unconed / MathBox.js

MathBox is a (work in progress) library for making presentation-quality math diagrams in WebGL.
MIT License
1.94k stars 126 forks source link

Director "remove" does not remove object from ThreeJS Geometry. #11

Open hassannabeel opened 11 years ago

hassannabeel commented 11 years ago

I am using MathBox library to draw animation using Curve primitives w.r.t time.

Since with each passing time slot, my total number of points increase for curve, i am using ['add','curve',...] and ['remove','#lastid...] in each step of Director.

The problem is MathBox only removes the curve from its own primitives but does not remove the elements from ThreeJS. Some debugging revealed that destroy methods are not yet implemented for renderable objects in primitive.

If someone can guide me, i am ready to implement these functions. I don't have much knowledge of MathBox or WebGL library as of now.

Thanks