Hi,
very simple (stupid?) question: can you make triangles (instead of rectangles) with in Groimp? If yes how?
Cause I saw there is the Class Triangle but when I write Triangle() I get error
Hi,
very simple (stupid?) question: can you make triangles (instead of rectangles) with in Groimp? If yes how?
Cause I saw there is the Class Triangle but when I write Triangle() I get error
Hi Michele,
It is a bit confusing but in groimp there is a 2d view and a 3d view. You can only use 2d objects in the 2d view and only 3d objects in the 3d view.
This is why when you try to open the 2d graph (which can be used with 3d objects) by opening the 2d view it fails and throw an error.
All objects defined in imp2d are objects for the 2d view. So it is possible to use the class de.grogra.imp2d.objects.Triangle but only in a 2d context.
In a 2d context you can simply create a scene with a Triangle with
init()[Axiom ==> Triangle();]
But I don’t know what is it useful for as in 2d most shapes are not even displayed.
To my knowledge there is no 3d tetrahedron or triangle boxes built in for the 3d view.
Best,
Gaetan
I see, thank you for your answer!
I think it could be a useful feature to have triangles for the 3d view