hi all
I’m using an OrthographicCamera
to render data from a DXF file, and now I need to clip the geometry rendered from the DXF data using a PlaneGeometry
I have created.
But I don’t know how to implement this functionality. I tried creating four Planes based on the PlaneGeometry
and then using clippingPlanes, I also set localClippingEnabled = true
for the WebGLRenderer
. but it didn’t work.
I tried the method mentioned above, but it didn’t work. Then I attempted to loop through the BufferAttribute(‘position’) of the geometry to determine if each vertex was within a specific Plane, and if it was, I set the position of that vertex to NaN. However, this caused the browser to crash.
I don’t have a great way to implement this function now. Do you have any good ideas?