POV-Ray : Newsgroups : povray.newusers : Non- exsistent object are white, but not transparent : Re: Non- exsistent object are white, but not transparent Server Time
25 Apr 2024 09:24:18 EDT (-0400)
  Re: Non- exsistent object are white, but not transparent  
From: Alain
Date: 26 Mar 2018 13:33:25
Message: <5ab92ee5@news.povray.org>
Le 18-03-26 à 09:12, stein a écrit :
> I have a cone-like object as a Mesh2 object:
> 
> https://imgur.com/a/5u1XC (picture)
> https://pastebin.com/aC5aQCg1 (textfile)
> 
> and i would like to cut away the part which is positive in x and y. For this I
> am using an intersection with 3 boxes. The desired part is white, but not
> transparent.
> 
> https://imgur.com/a/6htgs (picture)
> https://pastebin.com/q5fZnHqu (file with intersection)
> 
> How do I force POVRay to look into the cone?
> 
> 

It looks like you want to clip out some parts of your mesh.
If that's the case, then, you don't need the inside_verctor, in fact, 
you *don't want* to use one.
Using a difference would be simpler and easier than your intersection of 
a mesh and 3 boxes.
Replacing your mesh with an identifier to have something more concise, 
you can have something like this :

difference{
  object{My_Mesh}
// mesh WITHOUT an inside_vector and without any texture !
  box{<0,-10,0><-10, 10, -10>}// NO pigment !
  pigment{radial}
}

This example assume that the axis of your shape sits around the Y axis, 
change the box to accommodate your reference system if needed.
This way, the mesh is ONLY a zero thickness surface.
The procedural texture similar to the one that you use is applied to the 
whole object at once.
The radial pattern have a default colour_map that matches your image, so 
I did not include one.
As the CSG object don't have any thickness, the box will not show.

Another way is to use clipped_by :

object{My_Mesh
	clipped_by{box{<0,-10,0><-10, 10, -10>}}
	pigment{radial}
}

clipped_by cut out the part that is inside the clipper object.
Even is the clipped object is solid, like a box, you'll only see it as a 
shell.



Alain


Post a reply to this message

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