# Initial orientation needed on 3d models

**URL:** https://discourse.processing.org/t/initial-orientation-needed-on-3d-models/5530
**Category:** Coding Questions
**Created:** [November 14, 2018, 1:47pm UTC](https://discourse.processing.org/t/initial-orientation-needed-on-3d-models/5530 "2018-11-14T13:47:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wrcstewart](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@wrcstewart](https://discourse.processing.org/u/wrcstewart)
#### Post date: [November 14, 2018, 1:47pm UTC](https://discourse.processing.org/t/initial-orientation-needed-on-3d-models/5530/1 "2018-11-14T13:47:44Z")

</div>

I wonder if someone could tell me how I access the underlying 3d model. For example I can see from the doc how to import a \*.OBJ file - but then how could I for example edit it? Or, how can i set up a structure with a list of vertices and faces and then get it rendered? The documentation for model doesn’t seem to have the set of methods I’d expect. Maybe I’m looking at the wrong object all together?

Also - is there any plan to to provide any VR - say by including A-frame? I’m not clear how the whole 3d thing fits together here …

---

<div class="post-metadata">

### Author: ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)
#### Post date: [November 14, 2018, 2:28pm UTC](https://discourse.processing.org/t/initial-orientation-needed-on-3d-models/5530/2 "2018-11-14T14:28:54Z")

</div>

If you are loading the .obj file into a PShape, then you should be able to access the individual vertices by calling (PShape)shape.getVertex(2); to get the 3rd vertex (the vertex at index 2). Note, that it should be a number less than (excluding) shape.getVertexCount();

---

<div class="post-metadata">

### Author: ![wrcstewart](https://avatars.discourse-cdn.com/v4/letter/w/ac91a4/32.png) [@wrcstewart](https://discourse.processing.org/u/wrcstewart)
#### Post date: [November 14, 2018, 5:37pm UTC](https://discourse.processing.org/t/initial-orientation-needed-on-3d-models/5530/3 "2018-11-14T17:37:35Z")

</div>

Thanks for that. I’ll look into the doc on PShape.
