<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IPointCloud and IPointCloudSource classes in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/IPointCloud-and-IPointCloudSource-classes/m-p/232171#M4178</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello, &lt;BR /&gt;I am trying to import custom point cloud into Archicad from my Add-on.&lt;BR /&gt;To my surprising it is not possible to create/add 3D point to current Document from API.&lt;BR /&gt;&lt;BR /&gt;I was searching how to do that with DGL objects, but no results.&lt;BR /&gt;&lt;BR /&gt;Then I found several headers related to Point clouds creating and drawing (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API Development Kit 22.3004\Support\Modules\PointCloud folder in dev sdk), which seem to be used by Archicad's native point cloud importers.&lt;BR /&gt;&lt;BR /&gt;I would like to use them as well, from my Add-on, but it's not possible at the moment, because static libs for linking are missing (PointCloud.LIB and PointCloudManager.LIB).&lt;BR /&gt;&lt;BR /&gt;Therefore I've a question, if they are open for Add-on development and where I can find libs for specified headers above?&lt;BR /&gt;&lt;BR /&gt;Also, the most important thing, is to draw these points. I hope this can be done by using following function from PointCloudUtils.hpp file:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
	// Draws a pointcloud into a NativeContext
	static	bool	Draw	(IPointCloud* pointCloud, NewDisplay::NativeContext&amp;amp; context,
							 const PC::Matrix* worldMatrix, const PC::Matrix* viewMatrix, const PC::Matrix* projMatrix,
							 Int32 viewPortLeft, Int32 viewPortTop, Int32 viewPortRight, Int32 viewPortBottom,
							 UInt32 clipRectLeft, UInt32 clipRectTop, UInt32 clipRectRight, UInt32 clipRectBottom,
							 float pointSize = 0.0f);

&lt;/PRE&gt;
&lt;BR /&gt;If I can access this functionality, where should I take the instance of NativeContext for drawing?&lt;BR /&gt;And is there any documentation, describing PointCloud and PointCloudManager modules?&lt;BR /&gt;&lt;BR /&gt;Thanks, Valeria.&lt;/DIV&gt;</description>
    <pubDate>Mon, 09 Sep 2024 09:01:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-09T09:01:17Z</dc:date>
    <item>
      <title>IPointCloud and IPointCloudSource classes</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/IPointCloud-and-IPointCloudSource-classes/m-p/232171#M4178</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello, &lt;BR /&gt;I am trying to import custom point cloud into Archicad from my Add-on.&lt;BR /&gt;To my surprising it is not possible to create/add 3D point to current Document from API.&lt;BR /&gt;&lt;BR /&gt;I was searching how to do that with DGL objects, but no results.&lt;BR /&gt;&lt;BR /&gt;Then I found several headers related to Point clouds creating and drawing (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API Development Kit 22.3004\Support\Modules\PointCloud folder in dev sdk), which seem to be used by Archicad's native point cloud importers.&lt;BR /&gt;&lt;BR /&gt;I would like to use them as well, from my Add-on, but it's not possible at the moment, because static libs for linking are missing (PointCloud.LIB and PointCloudManager.LIB).&lt;BR /&gt;&lt;BR /&gt;Therefore I've a question, if they are open for Add-on development and where I can find libs for specified headers above?&lt;BR /&gt;&lt;BR /&gt;Also, the most important thing, is to draw these points. I hope this can be done by using following function from PointCloudUtils.hpp file:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
	// Draws a pointcloud into a NativeContext
	static	bool	Draw	(IPointCloud* pointCloud, NewDisplay::NativeContext&amp;amp; context,
							 const PC::Matrix* worldMatrix, const PC::Matrix* viewMatrix, const PC::Matrix* projMatrix,
							 Int32 viewPortLeft, Int32 viewPortTop, Int32 viewPortRight, Int32 viewPortBottom,
							 UInt32 clipRectLeft, UInt32 clipRectTop, UInt32 clipRectRight, UInt32 clipRectBottom,
							 float pointSize = 0.0f);

&lt;/PRE&gt;
&lt;BR /&gt;If I can access this functionality, where should I take the instance of NativeContext for drawing?&lt;BR /&gt;And is there any documentation, describing PointCloud and PointCloudManager modules?&lt;BR /&gt;&lt;BR /&gt;Thanks, Valeria.&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:01:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/IPointCloud-and-IPointCloudSource-classes/m-p/232171#M4178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T09:01:17Z</dc:date>
    </item>
  </channel>
</rss>

