DirectX, TIN surface models. Sample code for creating a mesh.
-
Hi, I was looking at Andrew Rissing's project AVID and was impressed. His code creates meshes from spheres and cylinders. (Ball and Stick class). I,ve done a small amount of 3d (under borland) but nothing under .net. Can anyone point me to an example of how to load a mesh from a TIN? I'm not using an *.x file. For example I would like to create a TinSurface class where I have a list of vectors (x,y,z) and a list of triangles (v1, v2, v3). Ideally I would like a drape a bitmap (green grass, brown dirt etc) but this can wait. ( I guess I could draw some funny looking trees with Andrew's classes while I'm at it !) I'm doing volume calcs between 2 surfaces and would like to graphically show how the surfaces intersect (for cut/fill etc). Thanks Stuart