How to make a point cloud?

Ah, thanks.

I actually suspected that might be the problem, but I didn’t know how to tell it the VTK directory. I did cmake /? and found -D, so I passed -D VTK_DIR=D:\VTK-9.0.1\build2.

Now the SmartVolumeMapper project shows up.

I still get a couple of skips in the cmake output that don’t look right. Are they okay, should I fix them, and how would I?

D:\vtk\SmartVolumeMapper4\build>cmake -D VTK_DIR=D:\VTK-9.0.1\build2 …
– Building for: Visual Studio 16 2019
– Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
– The C compiler identification is MSVC 19.26.28806.0
– The CXX compiler identification is MSVC 19.26.28806.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– VTK_VERSION: 9.0.1
– Configuring done
– Generating done
– Build files have been written to: D:/vtk/SmartVolumeMapper4/build

It doesn’t seem to find cl.exe. Not sure if that’s a problem because I can just load the .sln in VS and compile it there (assuming that works - haven’t checked yet)

Before running cmake I ran C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat. Should I have run vcvars32,bat?


Okay, I just tried compiling SmartVolumeMapper in VS, and it didn’t work. sigh

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Checking Build System
2>------ Build started: Project: SmartVolumeMapper, Configuration: Debug x64 ------
2>Building Custom Rule D:/vtk/SmartVolumeMapper4/CMakeLists.txt
2>SmartVolumeMapper.cxx
2>D:\vtk\SmartVolumeMapper4\SmartVolumeMapper.cxx(90,58): error C2039: ‘SetRequestedRenderModeToRayCastAndTexture’: is not a member of ‘vtkSmartVolumeMapper’
2>D:\VTK-9.0.1\src\Rendering\VolumeOpenGL2\vtkSmartVolumeMapper.h(90): message : see declaration of ‘vtkSmartVolumeMapper’
2>Done building project “SmartVolumeMapper.vcxproj” – FAILED.
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========