jared-hughes / DesThree

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

Function name shortening #15

Closed jared-hughes closed 3 years ago

jared-hughes commented 3 years ago

Expressions get too long, too quickly. Changing functions like ColorRGB to RGB, IcosahedronGeometryIcosahedron, MeshBasicMaterialBasicMaterial, etc. would improve this situation.

This should happen soon to allow for better backwards compatibility.

jared-hughes commented 3 years ago

Proposed Migration Table:

Before After
ColorRGB RGB
MeshBasicMaterial BasicMaterial
MeshLambertMaterial LambertMaterial
MeshToonMaterial ToonMaterial
MeshNormalMaterial NormalMaterial
MeshDepthMaterial DepthMaterial
MeshPhongMaterial PhongMaterial
IcosahedronGeometry Icosahedron
DodecahedronGeometry Dodecahedron
OctahedronGeometry Octahedron
TetrahedronGeometry Tetrahedron
SphereGeometry Sphere
TorusGeometry Torus
TorusKnotGeometry TorusKnot
CylinderGeometry Cylinder
FrustumGeometry Frustum
ConeGeometry Cone
BoxGeometry Box
Mesh Mesh
PointLight PointLight
AmbientLight AmbientLight
PerspectiveCamera PerspectiveCamera
Position Position
Show Show

Some comments:

SlimRunner commented 3 years ago

Seems like a good idea, especially considering the that the custom operator names are still a bit unstable while typing. Less typing goes a long way.