Basic 2D shapes not coming up.

30 views
Skip to first unread message

Dale Griffiths

unread,
Oct 30, 2021, 12:30:09 PM10/30/21
to Glowscript Users
Hello,
Prior to using extrusion and then compound object I thought I'd be able to see these 2D objects.
I only see the 3D floor here but not the 2D shapes of circle, rectangle or triangle.
Any ideas why the shapes library doesn't seem to work like this?

floor = box(size=vec(50, 1, 50), color=color.blue)
#sphere()
shapes.circle(pos=[10,0], radius=10)
tri = shapes.triangle(length=20)
#cr = shapes.circle(radius=2)
rt = shapes.rectangle(width=10, height=6)

Dale Griffiths

unread,
Oct 30, 2021, 12:32:48 PM10/30/21
to glowscri...@googlegroups.com
Ah, I think I need to extrude for it to work. I was thrown by the fact that I was able to make a triangle with 3 points prior to extruding.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Glowscript Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/glowscript-users/r68bUqVHFjE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to glowscript-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/glowscript-users/14383834-06cc-402b-acc5-c64d6b428888n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages