figure out if a sketch is in 3d
in
Programming Questions
•
1 year ago
How can i figure out if a sketch is in 2d or 3d?
If i use bezier with z values in a 2d sketch then i get this:
And that is probably done by a efficient check (atm i check ik all z values of a pvector are zero).vertex() with x, y, and z coordinates can only be used with a renderer that supports 3D, such as P3D or OPENGL. Use a version without a z-coordinate instead.bezierVertex() with x, y, and z coordinates can only be used with a renderer that supports 3D, such as P3D or OPENGL. Use a version without a z-coordinate instead.
I did found those 2 pieces of code in
http://code.google.com/p/processing/source/browse/trunk/processing/core/methods/demo/PGraphics.java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1