Mirroring Breps

Hi,
I am really new to grasshopper and trying to write a definition for a sliding pocket door. I am working on the fixed framed part of the pocket door but I am stuck trying to mirror through the z axis the studs that build the envelope of the frame. I have used xz and yz vectors and they work if I use a line on the x or y direction of the plane. As soon as I try to use a diagonal input line, all the vertical component goes off and the definition doesn’t work any more. Any ideas?
I have tried rotation around and axis but it doesn’t work either.

Create a vector which will become your mirroring axis, then construct a plane aligned to that vector.

What do these terms mean? :wink:

I know you know what those mean :innocent:, and maybe OP does as well.

This is a very unsophisticated approach, given a simple rectangle.

*EDIT; Oops, I forgot to internalize data.

Geometry based Mirror Axis.gh (6.5 KB)

Actually, I really don’t. I would need to see @FLO1’s geometry to know how to answer, but there is none to see so I ignored the thread.

1 Like

Your right, OP didn’t really give enough clarity to really understand the problem fully. Hence my half-baked answer and simplified approach.

Bounding box approach yields different results, which may be desirable.

Geometry based Mirror Axis V2.0.gh (16.6 KB)

I would put a mirror plane (pFrame) at the midpoint of the door threshold but again, without seeing the geometry, speculation is usually pointless.

Small but important detail: mirroring an object will not truly mirror its coordinate system. GH will automatically and inconsistently rearrange the axes to a right-handed coordinate system.

I’ve run into issue a couple times in panel design, and you may run into offset issues if you mirror control geometry.

Hi guys,
Sorry for the very very late response. I am attaching a simple file to show you’all what I mean.
The whole definition runs on a line I made in Rhino. Assume the long rectangle is the projection of the door at the floor and the small side rectangle is the frame of the door. Let’s say, I want to mirror that small rectangle at the other side of the door. How do I do that? Also, Everything is fine if my reference line runs
Door test.3dm (67.1 KB)
Door test.gh (8.4 KB)
along the x axis, but once I rotate the original line, everything collapses.

Hi Joseph,
Sorry for the very late response. I am an old guy and not very good at grasshopper. I am attaching a small example of what I mean. The main question what can I use instead of vectors x, y, z to rotate, extrude and mirror my geometries? As you can see in the attached file, I have a long rectangle that represents the door, and the small rectangle is the frame of the door. I use a line drawn in rhino as an input to start the definition. When I rotate the line at any angle, my whole definition goes out of whack b.c.
Door test.3dm (67.1 KB)
Door test.gh (8.4 KB)
everything is referenced to xyz. I have two questions:

  1. how can I mirror using normals instead of xyz.
  2. How can I build a model that can be rotated at any angle without collapsing
    Thank you for any help you can give me.

6 months later and you still have nothing useful? Very hard to take this thread seriously.

Study this and try harder.


door_2025Feb12a.gh (2.6 KB)

No need for R8 Rhino file.

who the hell you think you are? Next time try harder to be respectful with your elders. Perhaps you got nothing from your parents bc they are very ignorant or tolerant with your attitude.

1 Like

I’m me. :man_facepalming: Your remarks are ridiculous.