ingprokop
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
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
More modern is XNA, see http://msdn.microsoft.com/en-us/library/bb203897.aspx
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
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?
ASKER
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?
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 ?
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks, will try it and will get back to you as soon as I get results. thanks for your time and patience
http://msdn.microsoft.com/en-us/magazine/cc164112.aspx