Oblate earth

34 views
Skip to first unread message

pri...@gmail.com

unread,
Feb 9, 2021, 1:15:16 PM2/9/21
to Glowscript Users
I just tried to make an oblate earth (spheroid). I'm not so happy about the map:
How can I do better?

A more general suggestion:
Similar to obj.rotate, would it be possible to make  an obj.squeeze command, multiplying all coordinates of the object with a certain factor along a given axis, relative to a given origin, something like
obj.squeeze(origin=vector(...,...,...), axis=vector( ...,...,...),factor=...)?
If factor omitted, the default value could be the norm of the axis.
In this way a sphere could be modified to a spheroid (in stead of using extrusion as in my example), and you could make cylinders and rings with elliptical cross sections.

Poul Riis

Bruce Sherwood

unread,
Feb 9, 2021, 3:25:04 PM2/9/21
to Glowscript Users
I'm not sure what the issue is. Both the sphere and ellipsoid objects let you create ellipsoids:



And you can make cylinders and rings have ellipsoidal cross sections. Just use non-uniform "size".

Bruce

pri...@gmail.com

unread,
Feb 10, 2021, 3:12:38 AM2/10/21
to Glowscript Users
I'll tell myself every evening before I go to bed: READ THAT MANUAL!!!
I'm sorry that I've been so stupid - again!

Poul Riis

Reply all
Reply to author
Forward
0 new messages