Пример #1
0
  void runSetupBrush (SculptBrush& brush) {
    auto& params = brush.parameters <SBCreaseParameters> ();

    brush.detailFactor (brush.detailFactor () + 0.5f);
    params.intensity   (this->self->cache ().get <float> ("intensity", 0.5f));
    params.invert      (this->self->cache ().get <bool>  ("invert"   , false));
  }
Пример #2
0
void Action :: sculpt (const SculptBrush& brush) { 
  AffectedFaces domain;

  brush.sculpt (domain);

  postprocessEdges (brush, domain);
  Action::finalize (brush.meshRef (), domain);
}
Пример #3
0
void Action :: sculpt (const SculptBrush& brush) { 
  AffectedFaces domain;

  brush.sculpt (domain);

  if (domain.isEmpty () == false) {
    postprocessEdges (brush, domain);
  }
  if (brush.meshRef ().isEmpty () == false) {
    Action::finalize (brush.meshRef (), domain);
  }
}