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

Method SetBoxClip

Filters/General/vtkBoxClipDataSet.cxx:501–597  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Set the box for clipping for each plane, specify the normal and one vertex on the plane.

Source from the content-addressed store, hash-verified

499// for each plane, specify the normal and one vertex on the plane.
500//
501void vtkBoxClipDataSet::SetBoxClip(const double* n0, const double* o0, const double* n1,
502 const double* o1, const double* n2, const double* o2, const double* n3, const double* o3,
503 const double* n4, const double* o4, const double* n5, const double* o5)
504{
505 if ((this->Orientation == 1)
506
507 && (this->PlaneNormal[0][0] == n0[0]) && (this->PlaneNormal[0][1] == n0[1]) &&
508 (this->PlaneNormal[0][2] == n0[2])
509
510 && (this->PlaneNormal[1][0] == n1[0]) && (this->PlaneNormal[1][1] == n1[1]) &&
511 (this->PlaneNormal[1][2] == n1[2])
512
513 && (this->PlaneNormal[2][0] == n2[0]) && (this->PlaneNormal[2][1] == n2[1]) &&
514 (this->PlaneNormal[2][2] == n2[2])
515
516 && (this->PlaneNormal[3][0] == n3[0]) && (this->PlaneNormal[3][1] == n3[1]) &&
517 (this->PlaneNormal[3][2] == n3[2])
518
519 && (this->PlaneNormal[4][0] == n4[0]) && (this->PlaneNormal[4][1] == n4[1]) &&
520 (this->PlaneNormal[4][2] == n4[2])
521
522 && (this->PlaneNormal[5][0] == n5[0]) && (this->PlaneNormal[5][1] == n5[1]) &&
523 (this->PlaneNormal[5][2] == n5[2])
524
525 && (this->PlanePoint[0][0] == o0[0]) && (this->PlanePoint[0][1] == o0[1]) &&
526 (this->PlanePoint[0][2] == o0[2])
527
528 && (this->PlanePoint[1][0] == o1[0]) && (this->PlanePoint[1][1] == o1[1]) &&
529 (this->PlanePoint[1][2] == o1[2])
530
531 && (this->PlanePoint[2][0] == o2[0]) && (this->PlanePoint[2][1] == o2[1]) &&
532 (this->PlanePoint[2][2] == o2[2])
533
534 && (this->PlanePoint[3][0] == o3[0]) && (this->PlanePoint[3][1] == o3[1]) &&
535 (this->PlanePoint[3][2] == o3[2])
536
537 && (this->PlanePoint[4][0] == o4[0]) && (this->PlanePoint[4][1] == o4[1]) &&
538 (this->PlanePoint[4][2] == o4[2])
539
540 && (this->PlanePoint[5][0] == o5[0]) && (this->PlanePoint[5][1] == o5[1]) &&
541 (this->PlanePoint[5][2] == o5[2]))
542 {
543 return;
544 }
545
546 this->SetOrientation(1);
547
548 this->PlaneNormal[0][0] = n0[0];
549 this->PlaneNormal[0][1] = n0[1];
550 this->PlaneNormal[0][2] = n0[2];
551
552 this->PlaneNormal[1][0] = n1[0];
553 this->PlaneNormal[1][1] = n1[1];
554 this->PlaneNormal[1][2] = n1[2];
555
556 this->PlaneNormal[2][0] = n2[0];
557 this->PlaneNormal[2][1] = n2[1];
558 this->PlaneNormal[2][2] = n2[2];

Callers 9

BoxClipOrientedPointDataFunction · 0.80
TestBoxFunction · 0.80
Check2DPrimitiveFunction · 0.80
Check3DPrimitiveFunction · 0.80
TestPolyDataFunction · 0.80
BoxClipPointDataFunction · 0.80
SetClipAsHexahedronFunction · 0.80

Calls 2

SetOrientationMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

TestBoxFunction · 0.64
TestPolyDataFunction · 0.64