Author Topic: Check vertex position after import .obj  (Read 2399 times)

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Check vertex position after import .obj
« on: January 02, 2015, 11:41:39 am »
Hi Egon,

How can we check the final vertex position after importing .obj? I wanted to map it to jpct coordination. 

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Check vertex position after import .obj
« Reply #1 on: January 02, 2015, 12:17:06 pm »
You can access to vertex positions by extending the GenericVertexController. But you can't be sure that the n-th vertex in the mesh is the n-th vertex in the editor, if that's what you need.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Check vertex position after import .obj
« Reply #2 on: January 02, 2015, 03:39:02 pm »
Ok, got it ; ) BTW, is the vertex position we see from obj file is the same position in jpct wold coordinates? I tested, and it seems the same. Just wanna confirm with you again.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Check vertex position after import .obj
« Reply #3 on: January 02, 2015, 06:16:43 pm »
If you don't apply any kind of transformation to the object, then yes.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Check vertex position after import .obj
« Reply #4 on: January 04, 2015, 04:25:49 am »
Ok. Thanks alot egon ; )