Results 1 to 2 of 2

Thread: How to draw line model filled?

  1. #1
    Guest

    How to draw line model filled?

    Hi,

    for my model I have a list of vertices (x,y,z) and indeces (i,j) which define all the lines to be drawn (from vertex i to vertex j). Now the polygons created by drawing these (not ordered) lines are often pentagons. What is the easiest way to draw the model filled (triangles)?

    Thanks
    Dino

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: How to draw line model filled?

    If you have only connectivity informations of two indices each, this is not as simple as you might think. E.g. if you take a line i->j and find an adjacent line j->k that doesn't mean you have a triangle (i,j,k) because those two lines might span a triangle which lies inside the object instead of on its surface.
    It's almost as complicated as tesselating an unordered point cloud.
    The real solution brings algorithms into play which are called Delauny triangulation or tetrahedralization (is that a word?).

Similar Threads

  1. How to Draw A filled Circles in the Field? plz help
    By Ryan4441 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 01-05-2016, 10:43 PM
  2. draw line, line-size ... opengl 3.3 ?
    By CarstenT in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-28-2014, 08:19 AM
  3. How to create a filled version of a model?
    By Yarmy in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-29-2008, 04:50 AM
  4. Problem changing from line to filled polygon
    By johncsl82 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-26-2005, 08:45 AM
  5. Counting polygons in a LOD filled model
    By TriangleMan in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-26-2003, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean