Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model
Displaying a 3D Model Displaying a 3D Model
Displaying a 3D Model
Go Back  Xtreme Visual Basic Talk > > > > Displaying a 3D Model


Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2008, 10:20 AM
darkforcesjedi's Avatar
darkforcesjediDisplaying a 3D Model darkforcesjedi is offline
Trust me, I'm an

* Expert *
 
Join Date: Apr 2001
Location: In ur base, pwnin d00dz
Posts: 1,964
Default Displaying a 3D Model


I have some software that I can use to generate a 3D surface mesh from a solid model generated in CAD software. The mesh is output as a bunch of nodes (vertices) and a list of triangles.

The triangles have a few properties:
- Surface to which they belong (name inherited from CAD model)
- Indices of 3 vertices describing the triangle
- Other less important stuff

A particular model has 2600 vertices and about 7000 triangles. If I just create a bunch of triangles from vertices I end up with 3*7000=21000 specified vertices. The mesh is generated using a patch-based algorithm, which actually creates a triangle strip that follows the edge features of the surfaces, but this information is lost when the data is output because the nodes and triangles are sorted based on their position in 3-dimensional space.

If I can't use a triangle strip to represent the surfaces is there a way to handle unstructured meshes without all the memory overhead? I don't have a lot of DX experience. Mostly I just use it for 3D plots, in which case a triangle strip that zigzags back and forth represents a surface.
__________________
To err is human; to debug, divine.
Reply With Quote
  #2  
Old 06-14-2008, 09:22 AM
cugone cugone is offline
Centurion
 
Join Date: Nov 2007
Posts: 160
Default

The sister site has a tutorial on this exact issue. :>

http://www.xtremedotnettalk.com/showthread.php?t=87878

Here's the start of the session (just look for "Managed DirectX 9" in the title):

http://www.xtremedotnettalk.com/showthread.php?t=87678
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model Displaying a 3D Model
Displaying a 3D Model
Displaying a 3D Model
 
Displaying a 3D Model
Displaying a 3D Model
 
-->