DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5

Thread: Fill a triangle

  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Fill a triangle

    What is the more eficient algorithm to fill a triangle? any simple ideias to do it without use the java api

  2. #2
    Join Date
    Feb 2004
    Posts
    808

    Re: Fill a triangle

    Originally posted by korax
    What is the more eficient algorithm to fill a triangle? any simple ideias to do it without use the java api
    3d graphics, you mean?
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  3. #3
    Join Date
    Apr 2004
    Posts
    2
    if u mean 3d graphics when i said java api, yes.

    i just what to use some lines to fill a 2d triangle.

  4. #4
    Join Date
    Feb 2004
    Posts
    808
    arent triangles always 2d?

    i still dont get what youre asking. heres an example:

    im using a geforce 5400 or soemthing.. and it is capable of pumping out half a million billion (or something) filled triangles per second, in order to create shaped surfaces in a 3d world.

    are these the kind of triangles youre trying to fill?
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

  5. #5
    Join Date
    Feb 2004
    Posts
    34
    well , if you want to fill a triangle with a color (im assuming thats what you mean) why not just use the
    g.fillPolygon(int xpoints[] , int ypoint[] , int points) method of the AWT? But thats in 2D but i cant understand what you want so....
    www.saterasoft.cjb.net

    Come and play the games.....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links