View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014922VTKEdge(No Category)public2014-05-19 16:502015-01-23 03:41
ReporterVeysel Bekir Macit 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Platform6.2.1OSWindows OS Version7
Summary0014922: vtkClipPolyData clips data wrongly with box clip function
Descriptionthe code I wrote:
    cone->SetResolution(30);
     iBox->SetBounds(-1,1,-1,1,0,1);
    cube->SetBounds(iBox->GetBounds());
    trans->RotateX(60);
    transF->SetTransform(trans);
    transF->SetInputConnection(cone->GetOutputPort());

    transF->Update();
    pdClip->SetInputConnection(transF->GetOutputPort());
    pdClip->SetClipFunction(iBox);
   // pdClip->GenerateClippedOutputOn();
    pdClip->InsideOutOn();

and I got the image I have marked how vtkClipPolyData clips cone wrongly.
TagsNo tags attached.
Attached Filesjpg file icon vtkClipPolyData.jpg [^] (50,095 bytes) 2014-05-19 16:50

 Relationships

  Notes
(0035900)
Veysel Bekir Macit (reporter)
2014-05-19 16:53

sorry I have rotate Y axis not X. it should have been trans->RotateY(60);
(0037784)
edice (reporter)
2015-01-23 03:41

Could the problem have something to do with this comment in the vtkBox.cxx code (an older version of the code, not sure if its still the same).

// Evaluate box equation. This differs from the similar vtkPlanes
// (with six planes) because of the "rounded" nature of the corners.
double vtkBox::EvaluateFunction(double x[3])

What would be "rounded" about the corners?

 Issue History
Date Modified Username Field Change
2014-05-19 16:50 Veysel Bekir Macit New Issue
2014-05-19 16:50 Veysel Bekir Macit File Added: vtkClipPolyData.jpg
2014-05-19 16:53 Veysel Bekir Macit Note Added: 0035900
2015-01-23 03:41 edice Note Added: 0037784


Copyright © 2000 - 2018 MantisBT Team