Link to home
Start Free TrialLog in
Avatar of ingprokop
ingprokopFlag for Slovakia

asked on

3d modelling in realtime

hi there,

is there any way to build polygonal models using C# out of vertex coordinate informations? are there any examples?

ex:

1) I get coplanar coordinates of vertices from a separate program
2) a line should be created joining the vertices into a single line
3) that line should be extruded in 3rd D using a constant

hope I was clear enough, if not, let me know...

thanks in advance
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

A nice tutorial that includes drawing triangles (generally you draw triangles, not vertices per se, so you need to group your vertices) is at http://www.riemers.net/eng/Tutorials/XNA/Csharp/Series1/The_first_triangle.php
Avatar of ingprokop

ASKER

thanks for the answer. what I really need is to build a spline and extrude it. I can't build using polygons because of the complexity of the object. what I get from an external sw is a layout of an object whom I need to give a thickness.
So if I understand you correctly, you just want to generate points, not try to send your information to a graphics card?
firt I need to generate the points, then send it to a graphics car to see an object, that is the story of XNA
So you want to:

1) interpolate points between the input points using a spline algorithm
2) provide 3 dimensional "thickness" to the line to provide to XNA.

What kind of cross-section do you want your line to have, circular?

Or is the problem just the interpolation, and you are trying to draw a standard  PrimitiveType.LineStrip ?
1) correct
2) I need to provide a thickness to the liine AND to fill the start and end (to close the object)
imagine a circle extruded to a cylinder (closed)

hope it's clear enough
ASKER CERTIFIED SOLUTION
Avatar of Jens Fiederer
Jens Fiederer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks, will try it and will get back to you as soon as I get results. thanks for your time and patience