Symmetry operations, reflection, mirror
All  1  2-3

Previous
Next
 From:  bemfarmer
10186.2 In reply to 10186.1 
Nodeeditor has Mirror with mirrorFrame input. == Reflection
Also Rotate with Frame or rX, rY, and rZ inputs. == Rotation
Also Move by dX, dY and dZ. == Translation.
So I just have to figure out the matrix for the patch composite Transformations, and then decompose the matrix to Reflection, Rotation, and Translation matrices,
in the proper order.
Column matrices are written last to first operation, left to right, and the matrices are multiplied pairwise from left to right, with the initial point vector on the right.
Homogeneous coordinate 4X4 matrices will be used.
- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
10186.3 
Attached is a simple example node program to Mirror an object, with the reflective plane located in XY or YZ, or XZ plane. Three macros were created, one for each of the three reflective planes. As can be seen in the example, the output of any one of the three plane macros provides the input for the Mirror node "MirrorFrame" input. Due to the way the two input points of the Mirror factory work, in the Mirror node (Of Karsten?), there is a small amount of difference in the "concept or behavior" between "Frame" and "Plane", but the input points internal to the three macros accomplish the CORRECT and PROPER MirrorFrame input, even though the points used for the "plane" or "frame" might seem a bit off or "strange". The three macros are correct. There is a fourth permutation of points for the ZX plane, but it is redundant and unnecessary. A fifth permutation of points for the reflective plane does not work, and is also not given. The reflective plane, XY, YZ, or XZ, corresponds to the location of a physical mirror. (Planes at other, non-right angles to axes, are not given, but would likely involve trigonometry.)
Perhaps another set of macros with an angle input could be done? Or several angle inputs...?

The zip file "MacrosForMirrorPlanesFrames" should be unzipped, and the three macros copied to the nodeeditor Macro folder, if they are desired for future use-age. The macros should be added to a node screen using right click Macro file list selection. Do not Load the macro like a node, because it comes to the node screen in expanded mode, not in proper form.

- Brian

EDITED: 10 Mar 2021 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3