jared-hughes / DesThree

Desmos bindings for three.js
3 stars 0 forks source link

Allow for lists of objects defined with different constructors #13

Open jared-hughes opened 3 years ago

jared-hughes commented 3 years ago

Sample use case: making a barbell with two spheres and a cylinder. The user would want to make a list with these three objects, then use all three in a Mesh call to share the material.

Suggested syntax: geoms = [SphereGeometry(2), CylinderGeometry(1, 5), SphereGeometry(2)]

(Unfortunately, position can only be specified right now on Meshes)

Also a use case: colors = [RGB(0,0,0), RGB(100,100,100), RGB(250,250,250)] instead of colors = RGB([0,100,250], [0,100,250], [0,100,250])

This would also be a prerequisite before creating a Group function.