Drawing an ellipse in THREE.js

2019-08-12 06:06发布

问题:

I'm trying to draw a 3D ellipse with THREE.js.

I noticed in the dev version (r50-dev), EllipseCurve (extras/core/Curve.js) and path.ellipse (extras/core/Path.js) have been added.

Unfortunately, I am new to THREE.js and although I can do basic things, I haven't been able to find a tutorial on Curve, much less a tutorial on the still-in-developement EllipseCurve.

I also understand I can do this with multiple bezier curves.

Any pointers would be much appreciated!

回答1:

Try using this example as reference and lookng at the EllipseCurve code.