What settings does LPub use when rendering with LDView


Re: What settings does LPub use when rendering with LDView
#3
There is a bit more to it.

Generally LDView will use the settings last used when it was fired up. So, in theory you can have "Random Color" instructions or wireframes.

On the other hand it has a set of hard coded parameters it uses to address LDView, see renderCSI and renderPLI in the file "render.cpp" for those.

Code:
QString w  = QString("-SaveWidth=%1") .arg(width);
  QString h  = QString("-SaveHeight=%1") .arg(height);
  QString s  = QString("-SaveSnapShot=%1") .arg(pngName);

  QString cg = QString("-cg0.0,0.0,%1") .arg(cd);

  arguments << CA;
  arguments << cg;
  arguments << "-SaveAlpha=1";
  arguments << "-AutoCrop=1";
  arguments << "-ShowHighlightLines=1";
  arguments << "-ConditionalHighlights=1";
  arguments << "-SaveZoomToFit=0";
  arguments << "-SubduedLighting=1";
  arguments << "-UseSpecular=0";
  arguments << "-LightVector=0,1,1";
  arguments << "-SaveActualSize=0";
  arguments << w;
  arguments << h;
  arguments << s;

The documentation of LDView has an extensive section to explain the arguments you can hand over.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: What settings does LPub use when rendering with LDView - by Gerald Lasser - 2015-09-30, 10:06

Forum Jump:


Users browsing this thread: 2 Guest(s)