<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/183803/ord-ce-c-dtm</link><description>我从一个地形模型(Terrain Model)中获取了DTM，代码如下： 
 auto ts = TerrainSurface::CreateFromElementHandle(eeh); if (!ts.IsValid()) { mdlDialog_dmsgsPrint(L&amp;quot;not a terrain surface&amp;quot;); return; } DTMPtr dtm = ts-&amp;gt;GetDTM(); if (!dtm.IsValid()) { mdlDialog_dmsgsPrint(L&amp;quot;invalid</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538962?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 02:30:12 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8fe06f71-8f25-4d5a-a997-0b42f0143926</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;就是MSTN CE里面自带的例子，在.....\Bentley\MicroStationCONNECTSDK\examples\Elements目录下，名字叫Polyfacetool，可以把任何元素变成一个mesh元素&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538770?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 08:10:07 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:03f67822-5782-49e4-b6b9-62924493e773</guid><dc:creator>Jiuzhen An</dc:creator><description>&lt;p&gt; &amp;nbsp;和大家分享一下吧&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538767?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 07:54:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ce118898-b3ab-463a-a9fb-0cc4183d01c7</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;我拿到数据了，根据自带的例子把&lt;span&gt;TerrainModel&lt;/span&gt;&lt;span&gt;直接转换成了一个mesh。。。。。&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538032?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 07:05:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d5a50637-4897-4880-bd05-f943d706ea1e</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;这个找他们确定了下，是属于还没发布的sdk c++接口。现在要用的话，只能用c#或者托管c++提供的接口。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538030?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:59:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3b49631c-9129-42ee-a999-adbb89538195</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;我在include文件夹里搜了一遍，压根找不到&lt;span&gt;BcDtm这个类的定义。。。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;请问你的sdk是怎么拿到的？？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538021?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:11:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:739a7331-e340-48c1-96c9-40bc9aa74bd1</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;我看你的头文件中出现BcDtm GetBcDtm()这个接口，你可以使用BcDtm中的内容吗？这个也可以获取到你需要的内容。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/538020?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 06:09:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:195802b6-6718-4f96-8be9-247466cb3945</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;请问你的sdk是什么版本，通过什么途径获得的？？？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537816?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 02:33:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c16e6a10-5d12-4f0e-b35c-577a4e96e08c</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;我的&lt;span&gt;IDTM.h里确实没有这个函数。。。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343510/aabbcc.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;看来确实是sdk的问题，谢谢了&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537807?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 01:12:42 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fa7ef4e8-a739-498a-98cb-eae4ba6ce346</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;//! Gets the contouring interface.&lt;br /&gt;//! @return The contouring interface.&lt;br /&gt;BENTLEYDTM_EXPORT IDTMContouring* GetDTMContouring ();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;有啊，这个函数就在IDTM.h文件中。在IDTM这个类中。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537804?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 01:09:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:da761690-298e-4f9d-8482-32f70a5b61fc</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;其实有了等高线就可以利用等高线生成mesh网格。你说的这个函数&lt;span&gt;IDTMContouring* GetDTMContouring ()我搜遍了sdk的include文件夹都找不着。。。。。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;是不是我sdk的问题？？？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537595?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 02:58:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:28ceed76-2232-49c2-b9e1-124cdf061c50</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;用IDTM中的这个接口可以获取等高线&amp;nbsp;IDTMContouring* GetDTMContouring ();&lt;/p&gt;
&lt;p&gt;获取MESH网格的我再找下。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537590?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 02:41:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:af5326be-1654-4a00-acc7-d9921750cc7d</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;我没研究过c#和CLI。看来只能联系bentley看能不能拿到地形模型的相关c++ API，实在不行就不用地形模型了。。。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537432?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 09:53:49 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d8122be8-cd6d-4537-bdb1-92fadc4c9271</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;你可以使用c++/CLI调用Bentley.CifNET.TerrainModel.dll中的CivilDTM.CreatePolyface（DTM)接口进行获取网格。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537421?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 09:26:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cfe7ec72-4bd4-409c-9752-26f95a9d7c39</guid><dc:creator>程远 李</dc:creator><description>&lt;p&gt;我猜就是这样，问题是我找不到&lt;span&gt;BcDTM这个类的定义，难道是我的sdk太旧了？？？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537411?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 09:10:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:bd4bbe4f-2df2-4399-8215-49a3f215a2a5</guid><dc:creator>Devin Liu</dc:creator><description>&lt;p&gt;BcDTMMeshPtr GetMesh&lt;br /&gt; (&lt;br /&gt; bool firstCall,&lt;br /&gt; long maxMeshSize,&lt;br /&gt; DPoint3dCP fencePtsP,&lt;br /&gt; int numFencePts&lt;br /&gt; );&lt;br /&gt; &lt;br /&gt;IDTM* idtm;&lt;br /&gt;BcDTMP bcDTM = idtm-&amp;gt;GetBcDTM();&lt;br /&gt;BcDTMMeshPtr mesh = bcDTM-&amp;gt;GetMesh(.....);&lt;/p&gt;
&lt;p&gt;c++ 使用这个获取mesh。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537410?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 09:08:28 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:92f1bc19-8334-4b15-a6f6-b120e3cf9ba3</guid><dc:creator>Jiuzhen An</dc:creator><description>&lt;p&gt;DTM等高线：&lt;/p&gt;
&lt;p&gt;&lt;a href="/communities/other_communities/chinafirst/f/microstation-projectwise/182080/c-msce-dtm/531130#531130"&gt;https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/182080/c-msce-dtm/531130#531130&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ORD CE c++]如何从DTM中获取数据？</title><link>https://communities.bentley.com/thread/537402?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 08:58:04 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7b942d96-fca0-4b8e-b0b1-78c73502638b</guid><dc:creator>Jiuzhen An</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;PolyfaceHeader polyface = Bentley.CifNET.TerrainModel.CivilDTM.CreatePolyface(dtm)
DTransform3d transformA = DTransform3d.Scale(dgnModel.GetModelInfo().UorPerMeter);
polyface.Transform(ref transformA, false);
MeshHeaderElement eleOriMesh = new MeshHeaderElement(dgnModel, null, polyface);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;获取Mesh网格的，参考一下&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>