-2
$\begingroup$

I have written a python script that plots 3d graphs using blender. It mainly works, but one thing I would like to do is crop the plot so it doesn't go beyond the axes. I have tried to do this using a boolean intersection.

This works very well, except that it creates extra faces where the cube and graph intersect.

I can remove these extra faces manually, and this gives exactly what I want. But I don't want to manually edit every graph. Is there any way to delete these faces programmatically (or not create them in the first place, or make them transparent)?

Here is an example:

enter image description here

I need to remove the white faces so the graph axes become visible.

$\endgroup$
4
  • $\begingroup$ Please add your image directly into your question using the built-in editing tools rather than making us go to an external site to see it! See How to upload an image to a post?. $\endgroup$ Commented Nov 27 at 11:07
  • $\begingroup$ Hello and welcome. Could you provide a minimal example to better demonstrate the topology issue? You don’t actually need to use a boolean or remove intersecting geometry. If you write your equations so that they limit the values of the points being plotted, the graph will automatically stay within the desired bounds. In other words, the output mesh will effectively crop itself without generating extra faces or requiring post-processing. $\endgroup$ Commented Nov 27 at 13:32
  • $\begingroup$ I limit the values in the x and y direction. But the z value is calculated, so it can sometimes take out of range values. If I limited those out of rang values, it would essentially form a surface at the boundary, which is exactly what I want to avoid. $\endgroup$ Commented Nov 27 at 14:29
  • $\begingroup$ I'm still not fully understanding.. from what I see, capping the Z values during point generation seems essentially the same as using a boolean to cut the mesh, since both would produce a flat surface at the boundary. Could you edit your post to expand explanation and maybe include images showing the difference you're seeing? Right now it's not really clear why capping the points wouldn't achieve the same result as a boolean cut. Also, please update your post to mention that you already limit X and Y values but not Z, because I don't understand why that distinction matters. $\endgroup$ Commented Nov 27 at 14:58

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.