Problem getting vertices of wavefront obj loaded using loadshape in PS 2b6
in
Core Library Questions
•
10 months ago
Hi,
I am trying to access the vertices of a PShape loaded using the function loadShape.
The PShape renders correctly but I dont know how to access its vertices, even trying this simple code:
I am working with Eclipse.
Is there a way to access the vertices of obj?
Thanks!
I am trying to access the vertices of a PShape loaded using the function loadShape.
The PShape renders correctly but I dont know how to access its vertices, even trying this simple code:
- public void setup(){
size(640, 720, P3D);
obj = loadShape("teapot.obj");
System.out.println(obj.getVertexCount());
}
I am working with Eclipse.
Is there a way to access the vertices of obj?
Thanks!
1