Results 1 to 2 of 2

Thread: Area of intersection between two solid primitives

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2004
    Posts
    16

    Area of intersection between two solid primitives

    Hi,

    I have a solid cube and a solid cylinder. The cylinder has been translated so that it
    makes contact with part of the cube. I need to find a way to display the region of contact
    between these two primitives on the surface of the cube and hide the cylinder. Hence if the cylinder intersects the cube head-on, a circle will be shown on the side of the cube.

    I've had a look at some CSG tutorials but can't find anything that fits this problem as they all seem to focus on adding and subtracting volumes rather than displaying the surface area of contact. There must be a way of doing this as OpenGL calculates the areas of intersection when two objects touch.

    Can anyone help?

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Area of intersection between two solid primitives

    This is a subtraction operation in CSG rendering. This link explains how to perform these operations while rendering using OpenGL & the zbuffer & stencil buffer:

    http://www.sgi.com/software/opengl/a...es/node11.html

Similar Threads

  1. Replies: 2
    Last Post: 12-02-2014, 04:18 AM
  2. Finding Area between intersection points(polygon)
    By cutting_crew in forum OpenGL: General
    Replies: 1
    Last Post: 09-07-2008, 06:04 AM
  3. How to detect "vector primitives intersection"?
    By firegun9 in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-05-2005, 03:46 PM
  4. Creating solid primitives
    By imported_Ulrich in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-12-2004, 05:21 AM
  5. Intersection area
    By fox in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-02-2002, 05:53 AM

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