Ask Experts Questions for FREE Help !
Ask
    lhhai's Avatar
    lhhai Posts: 13, Reputation: 1
    New Member
     
    #1

    Feb 1, 2006, 05:57 AM
    Constructing a mesh from points
    Hi all,
    This is my problem:
    I have a set of point (x,y,z). They represents a surface.
    Now I want to use TriangleList to render them, so the problem is to find out which triple of point forms a Triangle. Is there any algorithm for that or any suggestion about keyword so that I can search them from Google.

    Thank in advance
    Hoang Hai
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member
     
    #2

    Feb 1, 2006, 10:18 AM
    I think this question may be a little too specialised for us to answer. Can I ask what "TriangleList" is?
    lhhai's Avatar
    lhhai Posts: 13, Reputation: 1
    New Member
     
    #3

    Feb 1, 2006, 08:15 PM
    TriangleList is just a list of triangle (but this term is common for those who works with DirectX, OpenGL or Java3D). However, my problem is not connected with any specific technology, it's just an algorithm problem.
    We have a list of point and I want to connect each 3 points to form triangle. These triangle are connected (the have shared edged) and they form a mesh.
    The problem is to choose which points are good to form a triangle.

    If you have any suggestion about forums that is more approriate, I appreciate your ideas. Please tell me.

    Thanks for your answer.
    Ademan's Avatar
    Ademan Posts: 40, Reputation: 11
    Junior Member
     
    #4

    Feb 1, 2006, 10:19 PM
    Well, I hate to tell you, but you're out of luck, unless you can make some assumptions. First of all, the definition of a triangle is "a convex polygon with three segments joining three non-collinear points. Each of the three segments is called a side, and each of the three non-collinear points is called a vertex." ( GoMath.com)

    So in reality, if you have a bunch of points, any 3 points creates a triangle. However, since you're talking about a mesh, it is POSSIBLE that you could do this, but ONLY if it's a convex shape (Convex)

    I suppose it'd be POSSIBLE to extract all the INTENDED triangles out of the mesh, however, if it's a non convex mesh, there is absolutely no way.

    Where are you getting these points? Are you sure you can't get the triangle data too? Most model formats (in fact all I can think of) provide triangle indices.

    Hope that helps
    -Dan
    red_cartoon's Avatar
    red_cartoon Posts: 52, Reputation: 6
    Junior Member
     
    #5

    Nov 20, 2007, 09:43 AM
    Use Delaunay triangulation algorithm

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Ill and repulsive mesh on basement floor [ 1 Answers ]

Debra McCarrell New Member Join Date: Aug 2006 Posts: 0 Sewage from the toilet is backing on the basement floor. Problem may be washing powder, toilet paper, and some foreign object. Can you help me? I am disgusted and broke.

Constructing a deck foundation [ 2 Answers ]

Thanks in advance for any advice... I plan on building a deck that will eventually be turned into an an game room with a 1/2 bath setup... What do you folks suggest I use for posts and joists? Also is it OK to use a concrete pier setup instead of placing the posts in the ground or is this a...

How do I finish my drywall w/ mesh tape? [ 4 Answers ]

I bought a bunch of all-purpose,lightweight joint compound and some fiberglass mesh tape to finish my drywalls. Now, I've only been able to find how to use the regular tape with finishing drywall. How the HECK do I finish the drywall w/ mesh tape? Yes, I'm a complete newbie Appreciate any...


View more questions Search