Mirror Matrix

free scripts, plugins, models, textures
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Mirror Matrix

Post by trueBlue »

Great improvements!
If an object is an Editable mesh and Mirror Mesh Vertices is enabled, the Normals get turned inside out.
Normals.png
Normals.png (19.3 KiB) Viewed 2427 times
If I change doFlip to false for Editable shape the Normals do not get turned inside out.

Code: Select all

//	if(MirrorVertices && Node.Exists( sel + "/Editable shape")) {
//		doFlip = true;
//	}

	if(MirrorVertices && Node.Exists( sel + "/Editable shape")) {
		doFlip = false;
	}
Maybe trueSpace bakes the Normal into Editable shapes?
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Mirror Matrix

Post by clintonman »

Thanks, but that's not the problem. NoFlip will just make it so it doesn't mirror the vertices of the mesh which you can't see in a symmetrical shape like a cube. The problem is the new mirror the copy instead of mirror the original. The copy needs to become the selected item for the next steps.

around line 124 of the MirrorStart script add a space select fixes it

Code: Select all

	if(makecopy) {
		sel = CopyMesh(sel);
		//arrange new node in the LE
		Node.ConRemove(sel, "LE2Data");
		Space.Select(sel);
	} else {
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Mirror Matrix

Post by trueBlue »

That did it, thanks! :D
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Mirror Matrix

Post by clintonman »

Fixed inside out mirror of meshes. Hopefully, the last bug fix.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Mirror Matrix

Post by trueBlue »

Not sure of unknown consequences, but if I copy your Flip Normals script and add it (Flip NormalsAgain) into your scripts, it fixes the Face that has a Flipped Normal (pink)
Mirror Matrix Face Reversed Normal.png
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Mirror Matrix

Post by clintonman »

trueBlue wrote: 22 Feb 2022, 23:41 Not sure of unknown consequences, but if I copy your Flip Normals script and add it (Flip NormalsAgain) into your scripts, it fixes the Face that has a Flipped Normal (pink)
Mirror Matrix Face Reversed Normal.png
Do you have steps and/or a sample to reproduce the flipped problem?
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Mirror Matrix

Post by trueBlue »

I selected the top Face of the Cube (attached) and pressed the Y button
Matrix Mirror Y.png
Attachments
Cube.RsObj
(25.88 KiB) Downloaded 90 times
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Mirror Matrix

Post by clintonman »

This tool was never meant to be used in point edit mode.

If I modify the code as shown I get:

PE mode 1 face selected then the flipped face gets fixed after pressing the Y button.
PE mode nothing selected then all the faces are flipped after pressing Y.
Object mode also turns the mesh inside out, all faces flipped.

The only case where the change works is if faces are selected. Everything gets turned inside out if points or edges are selected.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Mirror Matrix

Post by trueBlue »

Scratch the flipping normals again. I see that is not going to work
But I did find a solution
After I select the top Face, I use Select Connected, then press one of the X, Y, or Z buttons

Code: Select all

MeshModifiers.ApplySelectionTool('/Widgets/Tools/Mesh editor/PE Select tool','apply_cmd:{0502CC2A-7F8C-4d29-BBB4-9F1F2ECDC84C}');
Select Connected.png
Post Reply