## Having mesh optimization in core

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

### Re: Having mesh optimization in core

Lord,

Please modify the following files for me since I don't have commit access. If you can provide me with a luxconsole.exe build in win32 and win64 binaries, I can test on my Windows machines. Presently, I have only test on Linux.

1. (paramset.cpp) Insert after line 719

Code: Select all
      if (s == "center_stl_000")         AddBool(s, (bool*)(params[i]));

2. (stlmesh.cpp) Insert after line 48

Code: Select all
   bool bCenterStl000 = params.FindOneBool("center_stl_000", false);

3. (stlmesh.cpp) Insert after line 221

Code: Select all
   if (bCenterStl000)

I will revise the wiki page on the scene file after the commit. Basically, the param in the scene file will be a boolean for the attribute 'center_stl_000'. True will center the STL mesh and a false will not.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic

Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

### Re: Having mesh optimization in core

Thanks, that was exactly what I'm looking for !

trying to find my mesh 3 meter away ...
Rom1

Posts: 100
Joined: Thu Feb 04, 2010 7:18 am

### Re: Having mesh optimization in core

Rom1 wrote:Thanks, that was exactly what I'm looking for !

trying to find my mesh 3 meter away ...

I also have another enhancement I was thinking about providing: auto scaling for STLs. But, I have no idea if anyone would be interested in it.

I haven't tested on Windows or OSX. It should work though. If you can commit the auto centering feature to the repo, I can test the next time a Windows build is generated. I haven't yet tackled compiling on Windows...I've only compiled on Linux.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic

Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

### Re: Having mesh optimization in core

Sorry for the delay, been really busy lately. I'll make the mods tomorrow.
May contain traces of nuts.

Lord Crc

Posts: 4517
Joined: Sat Nov 17, 2007 2:10 pm

### Re: Having mesh optimization in core

Lord Crc wrote:Sorry for the delay, been really busy lately. I'll make the mods tomorrow.

Okay, no problem.
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic

Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

### Re: Having mesh optimization in core

Ok pushed the changes. I changed the name of the parameter to "recenter_mesh", as we might want to use it for ply files and similar as well. Hope this is ok, if not we can discuss a better one

Again, sorry for the delay
May contain traces of nuts.

Lord Crc

Posts: 4517
Joined: Sat Nov 17, 2007 2:10 pm

### Re: Having mesh optimization in core

Lord Crc wrote:Ok pushed the changes. I changed the name of the parameter to "recenter_mesh", as we might want to use it for ply files and similar as well. Hope this is ok, if not we can discuss a better one

Again, sorry for the delay

No worries...I like the name you have chosen. Good thinking!
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic

Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Previous