MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / NodeTriangle

Method NodeTriangle

physx/samples/samplebase/wavefront.cpp:812–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810 }
811
812 virtual void NodeTriangle(const GeometryVertex *v1,const GeometryVertex *v2,const GeometryVertex *v3, bool textured)
813 {
814 Resize(mIndices, mMaxIndices, mNumIndices, mNumIndices + 3);
815
816 mIndices[mNumIndices++] = GetIndex(v1->mPos, textured ? v1->mTexel : NULL);
817 mIndices[mNumIndices++] = GetIndex(v2->mPos, textured ? v2->mTexel : NULL);
818 mIndices[mNumIndices++] = GetIndex(v3->mPos, textured ? v3->mTexel : NULL);
819 }
820
821
822 const float* GetVertices() const { return mVertices; }

Callers 1

ParseLineMethod · 0.45

Calls 1

ResizeFunction · 0.85

Tested by

no test coverage detected