POV-Ray : Newsgroups : povray.newusers : Deleting triangles : Re: Deleting triangles Server Time
5 Sep 2024 02:15:28 EDT (-0400)
  Re: Deleting triangles  
From:
Date: 3 Jan 2002 08:06:54
Message: <ihl83u4knnigjjmh09qtq0ffe1jtuag8eg@4ax.com>
On Thu, 3 Jan 2002 13:46:04 +0100, Johannes Bretscher <bre### [at] 5slorg> wrote:

> Is it possible to delete some triangles from tihs mesh, i.e. to cut a hole
> in the generatet surface?

there is many ways to do it. it depend what your hole is and what your object is
check clipped_by{}, bounded_by{}, difference{}, intersection{}
if you want remove exat triangle then it is better to store vertices in some
structure (mainly array) and remove vertices from this structure first and
create mesh at final stage

you can be interested in
http://news.povray.org/Xns915C94A8BA293seed7%40povray.org

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.