MCPcopy Create free account
hub / github.com/Kitware/VTK / Push

Method Push

Filters/Sources/vtkPlaneSource.cxx:368–389  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Translate the plane in the direction of the normal by the distance specified. Negative values move the plane in the opposite direction.

Source from the content-addressed store, hash-verified

366// Translate the plane in the direction of the normal by the distance specified.
367// Negative values move the plane in the opposite direction.
368void vtkPlaneSource::Push(double distance)
369{
370 int i;
371
372 if (distance == 0.0)
373 {
374 return;
375 }
376 for (i = 0; i < 3; i++)
377 {
378 this->Origin[i] += distance * this->Normal[i];
379 this->Point1[i] += distance * this->Normal[i];
380 this->Point2[i] += distance * this->Normal[i];
381 }
382 // set the new center
383 for (i = 0; i < 3; i++)
384 {
385 this->Center[i] = 0.5 * (this->Point1[i] + this->Point2[i]);
386 }
387
388 this->Modified();
389}
390
391//------------------------------------------------------------------------------
392void vtkPlaneSource::Rotate(double angle, double rotationAxis[3])

Callers 12

SerializeGhostPointsMethod · 0.45
SerializeDataArrayMethod · 0.45
SerializeFieldDataMethod · 0.45
SerializeGhostDataMethod · 0.45
PackDataMethod · 0.45
ProcessTreesMethod · 0.45
ProcessTreesMethod · 0.45
RequestDataMethod · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by

no test coverage detected