Search found 6 matches
- Thu Sep 10, 2020 12:03 am
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Re: Plugin not recognized after ccPointCloud.addPoint()
I figured out the problem. I didn't set CMAKE_INSTALL_PREFIX correctly, so building the INSTALL target didn't update the plugin in the right directory. After I set CMAKE_INSTALL_PREFIX to the right value, my code started working properly. It's important to remember that the INSTALL target will only ...
- Thu Sep 03, 2020 7:12 pm
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Re: Plugin not recognized after ccPointCloud.addPoint()
After using "Run as Administrator", I built the INSTALL project in Visual Studio. This installed my DLL in the plugins directory.
But CloudCompare still won't recognize my plugin because of the addPoint issue.
Thanks,
Matt
But CloudCompare still won't recognize my plugin because of the addPoint issue.
Thanks,
Matt
- Thu Sep 03, 2020 5:29 pm
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Re: Plugin not recognized after ccPointCloud.addPoint()
Yes, I stopped using dynamic allocation. Currently, I'm using the following code: ccPointCloud cloud; cloud.reserve(1); CCVector3d vec(0.0, 0.0, 0.0); const CCVector3 pt = CCVector3::fromArray(vec.u); // cloud.addPoint(pt); When I uncomment the last line, CloudCompare stops recognizing the plugin. I...
- Thu Sep 03, 2020 5:09 pm
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Re: Plugin not recognized after ccPointCloud.addPoint()
Here's an interesting point. I've looked through other plugins, and many of them create point clouds with:
But when I use that to create a point cloud, CloudCompare doesn't accept my plugin.
Code: Select all
ccPointCloud* cloud = new ccPointCloud();
- Thu Sep 03, 2020 4:57 pm
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Re: Plugin not recognized after ccPointCloud.addPoint()
No, I generated a VS2017 project with CMake. After building the project, VS executes a post-build step that copies the DLL to CloudCompare's plugins directory.
Should I use the INSTALL feature? How does it work?
Many thanks,
Matt
Should I use the INSTALL feature? How does it work?
Many thanks,
Matt
- Thu Sep 03, 2020 4:41 pm
- Forum: Plugins
- Topic: Plugin not recognized after ccPointCloud.addPoint()
- Replies: 8
- Views: 4955
Plugin not recognized after ccPointCloud.addPoint()
When I run the following code in my plugin, CC displays the action in the Plugins menu: pluginAction = new QAction("My Plugin", this); pluginAction ->setIcon(getIcon()); // Connect signal for dialog action connect(pluginAction , &QAction::triggered, this, [this]() { ccPointCloud cloud;...