<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[gelöst]Koordinaten aus einer stl-Datei nach C++ importieren]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe Scandaten als .stl-Datei vorliegen, im ASCI-II Format.<br />
Nun möchte ich mir entweder die Dreiecke oder die Punkte auslesen um aus dem ausgelesenen Material eine Liste (Vector oder Array) der Punkte in C++ zu erstellen. Damit ich dann mit den Punkten weiter arbeiten kann.<br />
Es wäre nett, wenn mir jemand sagen könnte, wie das funktioniert oder wo ich das nachlesen kann.</p>
<p>Ich wusste jetzt nicht, ob das Thema hierhin gehört oder ins Grafik-Forum.<br />
Danke schon mal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/299686/gelöst-koordinaten-aus-einer-stl-datei-nach-c-importieren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 03:19:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/299686.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Feb 2012 10:17:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 15:24:02 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe Scandaten als .stl-Datei vorliegen, im ASCI-II Format.<br />
Nun möchte ich mir entweder die Dreiecke oder die Punkte auslesen um aus dem ausgelesenen Material eine Liste (Vector oder Array) der Punkte in C++ zu erstellen. Damit ich dann mit den Punkten weiter arbeiten kann.<br />
Es wäre nett, wenn mir jemand sagen könnte, wie das funktioniert oder wo ich das nachlesen kann.</p>
<p>Ich wusste jetzt nicht, ob das Thema hierhin gehört oder ins Grafik-Forum.<br />
Danke schon mal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181825</guid><dc:creator><![CDATA[Kentatschdis]]></dc:creator><pubDate>Thu, 16 Feb 2012 15:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 10:34:55 GMT]]></title><description><![CDATA[<p>Einfach mit einem std::ifstream die Datei öffnen und dann mit &gt;&gt; die entsprechenden Elemente lesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181829</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 16 Feb 2012 10:34:55 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 10:41:26 GMT]]></title><description><![CDATA[<p>Wo hakt es denn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181834</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 16 Feb 2012 10:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 10:47:28 GMT]]></title><description><![CDATA[<p>krümelkacker schrieb:</p>
<blockquote>
<p>Wo hakt es denn?</p>
</blockquote>
<p>Das ging ja schnell, danke euch beiden.</p>
<p>Es hakt daran, dass ich überhaupt nicht weiss wie ich an die Sache heran gehen soll.<br />
Bisher habe ich immer nur in C++ programmiert. Wenn es eine Schnittstelle bisher gab, haben die Proffs das für uns erledigt.<br />
Jetzt muss ich jedoch eine Schnittstelle selber programmieren und habe so etwas noch nie gemacht, ausser Triviales, z.B. in Java Bilder importiert usw.</p>
<p>Das Problem ist wenn ich &quot;stl&quot; mitsuche bei google, spuckt er mir immer etwas von einer c++-Bibliothek aus, die auch stl heisst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181837</guid><dc:creator><![CDATA[Kentatschdis]]></dc:creator><pubDate>Thu, 16 Feb 2012 10:47:28 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 10:53:34 GMT]]></title><description><![CDATA[<p>Kentatschdis schrieb:</p>
<blockquote>
<p>Bisher habe ich immer nur in C++ programmiert. Wenn es eine Schnittstelle bisher gab, haben die Proffs das für uns erledigt</p>
</blockquote>
<p>Ja.. &quot;Schnittstelle&quot;..</p>
<p>Kentatschdis schrieb:</p>
<blockquote>
<p>Das Problem ist wenn ich &quot;stl&quot; mitsuche bei google, spuckt er mir immer etwas von einer c++-Bibliothek aus, die auch stl heisst.</p>
</blockquote>
<p>STL = Standard Template Library, Teil der C++ Standardbibliothek. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Aber ohne Frage können wir dir nicht wirklich weiterhelfen. theta hat eigentlich schon alles geschrieben. Du öffnest die Datei und liest dann aus.. wie aus std::cin.. das hast du doch schon mal gemacht?<br />
<a href="http://www.cplusplus.com/reference/iostream/ifstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/ifstream/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181838</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Thu, 16 Feb 2012 10:53:34 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 10:56:23 GMT]]></title><description><![CDATA[<p>Fange mal so an:<br />
1. Visual Studio 2010 Express herunterladen und installieren<br />
(<a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express" rel="nofollow">http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express</a>)<br />
2. Visual C++ - Win32 Console Projekt mit Option 'Console application' erzeugen<br />
3. Im *.cpp File wo was von main steht folgendes reinschreiben:</p>
<pre><code class="language-cpp">// Falls stdafx.h inkludiert wird, muss sie an erster Stelle sein.
#include &lt;fstream&gt;
#include &lt;iostream&gt;

int main()
{
   std::ifstream stream(&quot;PfadZuDeinerSTLDateiInklusiveNamen.stl&quot;);
   if (!stream)
   {
      std::cerr &lt;&lt; &quot;Konnte die Datei nicht öffenen&quot; &lt;&lt; std::endl;
   }

   int wert = 0;
   // Erster Zahlenwert lesen.
   stream &gt;&gt; wert;
}
</code></pre>
<p>PS: Ziemlich sicher steht nicht main(..) sondern _tmain(..) - einfach ignorieren und so lassen.</p>
<p>Edit: Typo korrigiert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181840</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 16 Feb 2012 10:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 11:45:15 GMT]]></title><description><![CDATA[<p>Kentatschdis schrieb:</p>
<blockquote>
<p>Das Problem ist wenn ich &quot;stl&quot; mitsuche bei google, spuckt er mir immer etwas von einer c++-Bibliothek aus, die auch stl heisst.</p>
</blockquote>
<p>Ich finde bei so einer Suche auch das hier:<br />
<a href="http://en.wikipedia.org/wiki/STL_%28file_format%29" rel="nofollow">http://en.wikipedia.org/wiki/STL_(file_format)</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181867</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Thu, 16 Feb 2012 11:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 11:49:41 GMT]]></title><description><![CDATA[<p>OK, vielen Dank an alle erst mal.<br />
Ich werde mir das mal genauer anschauen und das so probieren, wie ihr das vorgeschalgen habt.<br />
Vielleicht ist es ja auch am Mut gescheitert.</p>
<p>Falls noch konkrete Fragen auftauchen sollten, melde ich mich nochmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181868</guid><dc:creator><![CDATA[Kentatschdis]]></dc:creator><pubDate>Thu, 16 Feb 2012 11:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 11:52:49 GMT]]></title><description><![CDATA[<p>krümelkacker schrieb:</p>
<blockquote>
<p>Kentatschdis schrieb:</p>
<blockquote>
<p>Das Problem ist wenn ich &quot;stl&quot; mitsuche bei google, spuckt er mir immer etwas von einer c++-Bibliothek aus, die auch stl heisst.</p>
</blockquote>
<p>Ich finde bei so einer Suche auch das hier:<br />
<a href="http://en.wikipedia.org/wiki/STL_%28file_format%29" rel="nofollow">http://en.wikipedia.org/wiki/STL_(file_format)</a></p>
</blockquote>
<p>Ich gebe &quot;c++&quot; immer mit ein, weil ich das alles für c++ brauche.<br />
Naja egal, einen ersten Ansatz habe ich ja, mal schauen, was passiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181869</guid><dc:creator><![CDATA[Kentatschdis]]></dc:creator><pubDate>Thu, 16 Feb 2012 11:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 12:05:53 GMT]]></title><description><![CDATA[<p>theta schrieb:</p>
<blockquote>
<p>Fange mal so an:<br />
1. Visual Studio 2010 Express herunterladen und installieren<br />
(<a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express" rel="nofollow">http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express</a>)<br />
2. Visual C++ - Win32 Console Projekt mit Option 'Console application' erzeugen</p>
</blockquote>
<p>Warum sollte er sich Visual Studio holen?<br />
Wenn er Mac/Linux hat war das eine doofe Idee.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181880</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181880</guid><dc:creator><![CDATA[Ethon]]></dc:creator><pubDate>Thu, 16 Feb 2012 12:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 12:11:32 GMT]]></title><description><![CDATA[<p>theta schrieb:</p>
<blockquote>
<p>PS: Ziemlich sicher steht nicht main(..) sondern _tmain(..) - einfach ignorieren und so lassen.</p>
</blockquote>
<p>Warum zeigst du ihm nicht einfach, wie man eine ISO-C++ konforme Anwendung erstellt? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181886</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Thu, 16 Feb 2012 12:11:32 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 12:34:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/26744">@Ethon</a>: Ach, sei mal nicht so... wenn er will und kann nimmt er/sie VS, wenn nicht dann nicht...</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/22268">@PI</a>: Finde ich auch wichtig mit dem ISO, aber man darf ruhig auch mal den Fokus aufs Wesentliche richten, beim einem Anfänger IMHO nicht unbedingt ISO Konformität. Ausserdem ist in meinem Beitrag der Code ISO konform und der Hinweis bezüglich _tmain(..) soll lediglich im realen Leben helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181897</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 16 Feb 2012 12:34:10 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 14:01:29 GMT]]></title><description><![CDATA[<p>Das Problem ist, dass vorkompilierte Header bei vielen Anfängern zu Verwirrung und Problemen führen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181917</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Thu, 16 Feb 2012 14:01:29 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 14:29:54 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Das Problem ist, dass vorkompilierte Header bei vielen Anfängern zu Verwirrung und Problemen führen.</p>
</blockquote>
<p>Das ist gut möglich, jedoch ist es die default Einstellung im VS (zumal stdafx.h nicht zwingend precompiled Header bedeuted).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181926</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Thu, 16 Feb 2012 14:29:54 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst]Koordinaten aus einer stl-Datei nach C++ importieren on Thu, 16 Feb 2012 15:24:41 GMT]]></title><description><![CDATA[<p>Nochmals Danke an alle <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2181946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2181946</guid><dc:creator><![CDATA[Kentatschdis]]></dc:creator><pubDate>Thu, 16 Feb 2012 15:24:41 GMT</pubDate></item></channel></rss>