|
 |
Alain <kua### [at] videotron ca> wrote:
> 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
I used Alains "clipped_by"-version and this worked very well. I only had to
invert the box.
object{My_Mesh
clipped_by{box{<0,0,0><10, 10, 10> inverse}}
}
Post a reply to this message
|
 |