contains a demo .cpp file which uses VTK (to draw a line) and a function to generate and run it as mex file, quick and dirty ;-)
i use vtk 6.1 and windows 8 64 bit. 
i had problems to find and link the needed vtk *.lib files, so the function links all files from vtk/lib automatically. eventually you have to conform your vtk/lib path in my function file. 
call function with: VTKLoadLibraries('testfile.cpp');
_______
I added a complete tutorial for installation of VTK 6.1 under Windows 64 bit. It starts with generating the binaries with CMake and ends with generating and executing a mex testfile in Matlab. I hope, someone will find it usefull. I wasted a week until everything worked on my system and it was very hard to remember every step i tried until it worked. ^^
인용 양식
Mimi (2025). VTK 6.1 mex demo incl. complete tutorial for installation of VTK 6.1 under Windows (https://kr.mathworks.com/matlabcentral/fileexchange/48948-vtk-6-1-mex-demo-incl-complete-tutorial-for-installation-of-vtk-6-1-under-windows), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > External Language Interfaces > C with MATLAB > Write C Functions Callable from MATLAB (MEX Files) >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!