Results 1 to 7 of 7

Thread: making Holes in a model on the fly (of type m15)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    making Holes in a model on the fly (of type m15)

    the project is to make holes in a flat rectangular model of type M15.
    just click on the woody surface to make square holes, move the mouse while pressing it and you have a worm path. use arrows to rotate the surface, and P,L to move light up down, press F1 for help with keys.
    the model composed from triangles and every triangle have 3 vertices, the order of vertices like this picture:
    m15.jpg
    i don't know if it is possible to delete the triangle vertices in the memory, but we can assign the coordinates of the second vertex to the first vertex so we have a very thin triangle (ie: a line) and the what was space inside the triangle now outside and we can look through it.
    i have constructed a cubes over every consecurtive 2 triangles so to check if the mouse click is within one.
    then deleting a 2 triangles which form a square. i feel something not precise here but my brain are frozen from cold.
    there is something regarding the light, it is the Gray color around the holes, we can get rid of it if we turn off light. i don't know why this phenomena.

    holes.JPG

    references:
    of course i depend heavily on the Petr tactics/plans/code in
    demo_of_0192.TBASIC" IN FOLDER "TBGL_BonusPack_1_6_0_10\GUIandText\Selection" in the TBGL Bonus Pack Version: 1.6.0.10 downloaded from here
    http://www.thinbasic.com/index.php?o...tegory&catid=5

    2- water_patch example in the thread http://www.thinbasic.com/community/s...ow-to-get-this
    Attached Files Attached Files

Similar Threads

  1. Making robots that are ethical - perhaps of interest
    By LanceGary in forum Shout Box Area
    Replies: 1
    Last Post: 10-11-2010, 19:32
  2. making .ini files
    By sandyrepope in forum INI
    Replies: 3
    Last Post: 20-08-2007, 10:01
  3. making programs pretty
    By sandyrepope in forum Console
    Replies: 9
    Last Post: 13-05-2007, 20:55
  4. making help files for our programs
    By sandyrepope in forum thinBasic General
    Replies: 1
    Last Post: 20-02-2007, 20:18

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •