[vtkusers] ICP with vtkActors
Sean Richards
sean at millwood.ca
Wed Aug 18 10:50:46 EDT 2004
Hello,
I have created a test program for ICPTransform. I create 2 simple PlaneSource objects that are close to being aligned. When I use the PlaneSource objects with ICP the algorithm works fine. An example of this code is in the attached file called PlaneSource-ICP.cxx
I then try to use almost the same code, except instead of putting the PlaneSource objects into the ICP algorithm, I use the actors instead. When I do this, vtk crashes. You can see the code in question in the attached file called Actor-ICP.cxx
Ultimately, I want to be able to use actors as the input to ICP.
Thanks!!
Sean
The debug output from Microsoft Visual C++ when I run Actor-ICP.cxx is:
***** Stack Trace *****
vtkmyEx1.exe!vtkMatrix4x4::DeepCopy(double * Elements=0x00000018, const double * newElements=0x00338278) Line 291 + 0xf C++
vtkmyEx1.exe!vtkMatrix4x4::DeepCopy(double * Elements=0x00000018, vtkMatrix4x4 * source=0x00338260) Line 57 + 0x13 C++
vtkmyEx1.exe!vtkProp3D::GetMatrix(double * result=0x00000018) Line 338 + 0x10 C++
vtkmyEx1.exe!vtkProp3D::GetMatrix(vtkMatrix4x4 * result=0x00000000) Line 331 + 0x17 C++
vtkmyEx1.exe!vtkIterativeClosestPointTransform::InternalUpdate() Line 368 + 0x1f C++
vtkmyEx1.exe!vtkAbstractTransform::Update() Line 300 + 0xd C++
vtkmyEx1.exe!main(int argc=1, char * * argv=0x00335d30) Line 159 C++
vtkmyEx1.exe!mainCRTStartup() Line 398 + 0x11 C
kernel32.dll!77e814c7()
***** Autos *****
Elements 0x00000018 double *
i 0 int
newElements 0x00338278 const double *
newElements[i] 1.0000000000000000 const double
More information about the vtkusers
mailing list