<?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[Komplexe SOLID Formen aus einer VRML Datei importieren]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich bin kein c++ programmierer(habe erst letzte Woche damit angefangen-:))und muss bei meiner Arbeit ein bereitstehendes Code bearbeiten.<br />
Wie es im Titel steht,muss ich die Koordinaten aus einer VRML Datei einlesen und in einem 3D array speichern,<br />
So sieht ein SOLID array aus(SOLID ist eine Kollisionserkennung Bibliotheke):</p>
<pre><code>DtScalar vertices[5 * 3] = { 
  1.0, 0.0, 1.0, 
  1.0, 0.0, -1.0, 
  -1.0, 0.0, -1.0, 
  -1.0, 0.0, 1.0, 
  0.0, 1.27, 0.0 
};
</code></pre>
<p>und das ist ein Beispiel für eine VRML Datei</p>
<pre><code>#VRML V1.0 ascii

# Blender V2.0

# 'Switch' is used as a hack, to ensure it is not part of the drawing

Separator {
Switch {
	DEF Mesh
	Separator {
		Coordinate3 {
			point [

				 470.844666 -256.891846 61.574997,
				 -307.309845 -266.230652 78.196877,
				 367.757477 -245.659866 99.824272,
				 319.179932 -334.661255 -53.932671,
				 144.929276 -287.945709 26.066803,
				 637.783752 -202.459366 79.577507,
				 -442.136383 -182.807587 35.533432,
				 -628.024109 -256.725250 -312.342316,
				 667.805847 -327.721985 -93.787979,

			]
		}
		IndexedFaceSet {
			coordIndex [

				 636, 2491, 42, -1,
				 849, 458, 830, -1,
				 2458, 1803, 2244, -1,
				 154, 163, 2022, -1,
				 2577, 2208, 319, -1,
				 2592, 1000, 996, -1,
				 421, 462, 441, -1,
				 655, 1119, 2358, -1,

			]
		}
	}

	# Hidden Objects, in invisible layers

}

# Visible Objects

Separator {
	MatrixTransform {
	matrix 
		0.685880 -0.317370 0.654862 0.000000
		0.727634 0.312469 -0.610666 0.000000
		-0.010817 0.895343 0.445245 0.000000
		-0.338183 -0.376694 -11.252342 1.000000
	}

	Separator {
		MatrixTransform {
		matrix 
			1.000000 0.000000 0.000000 0.000000
			0.000000 1.000000 0.000000 0.000000
			0.000000 0.000000 1.000000 0.000000
			-15.631066 26.202215 146.373322 1.000000
		}
		USE Mesh
	}
}
}
</code></pre>
<p>Die Aufgabe besteht darin,die Punkte (die zwischen &quot;point [&quot; und ] stehen) im<br />
DTscalar vertices durch eine Funktion eingeben zu können.<br />
Ich bitte um eure Hilfe,es ist dringend und ich kann ohne diese Funktion nicht weiter kommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182418/komplexe-solid-formen-aus-einer-vrml-datei-importieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 17:35:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182418.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 May 2007 19:29:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Komplexe SOLID Formen aus einer VRML Datei importieren on Thu, 24 May 2007 19:29:44 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich bin kein c++ programmierer(habe erst letzte Woche damit angefangen-:))und muss bei meiner Arbeit ein bereitstehendes Code bearbeiten.<br />
Wie es im Titel steht,muss ich die Koordinaten aus einer VRML Datei einlesen und in einem 3D array speichern,<br />
So sieht ein SOLID array aus(SOLID ist eine Kollisionserkennung Bibliotheke):</p>
<pre><code>DtScalar vertices[5 * 3] = { 
  1.0, 0.0, 1.0, 
  1.0, 0.0, -1.0, 
  -1.0, 0.0, -1.0, 
  -1.0, 0.0, 1.0, 
  0.0, 1.27, 0.0 
};
</code></pre>
<p>und das ist ein Beispiel für eine VRML Datei</p>
<pre><code>#VRML V1.0 ascii

# Blender V2.0

# 'Switch' is used as a hack, to ensure it is not part of the drawing

Separator {
Switch {
	DEF Mesh
	Separator {
		Coordinate3 {
			point [

				 470.844666 -256.891846 61.574997,
				 -307.309845 -266.230652 78.196877,
				 367.757477 -245.659866 99.824272,
				 319.179932 -334.661255 -53.932671,
				 144.929276 -287.945709 26.066803,
				 637.783752 -202.459366 79.577507,
				 -442.136383 -182.807587 35.533432,
				 -628.024109 -256.725250 -312.342316,
				 667.805847 -327.721985 -93.787979,

			]
		}
		IndexedFaceSet {
			coordIndex [

				 636, 2491, 42, -1,
				 849, 458, 830, -1,
				 2458, 1803, 2244, -1,
				 154, 163, 2022, -1,
				 2577, 2208, 319, -1,
				 2592, 1000, 996, -1,
				 421, 462, 441, -1,
				 655, 1119, 2358, -1,

			]
		}
	}

	# Hidden Objects, in invisible layers

}

# Visible Objects

Separator {
	MatrixTransform {
	matrix 
		0.685880 -0.317370 0.654862 0.000000
		0.727634 0.312469 -0.610666 0.000000
		-0.010817 0.895343 0.445245 0.000000
		-0.338183 -0.376694 -11.252342 1.000000
	}

	Separator {
		MatrixTransform {
		matrix 
			1.000000 0.000000 0.000000 0.000000
			0.000000 1.000000 0.000000 0.000000
			0.000000 0.000000 1.000000 0.000000
			-15.631066 26.202215 146.373322 1.000000
		}
		USE Mesh
	}
}
}
</code></pre>
<p>Die Aufgabe besteht darin,die Punkte (die zwischen &quot;point [&quot; und ] stehen) im<br />
DTscalar vertices durch eine Funktion eingeben zu können.<br />
Ich bitte um eure Hilfe,es ist dringend und ich kann ohne diese Funktion nicht weiter kommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291730</guid><dc:creator><![CDATA[hamzarad]]></dc:creator><pubDate>Thu, 24 May 2007 19:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to Komplexe SOLID Formen aus einer VRML Datei importieren on Thu, 24 May 2007 19:54:00 GMT]]></title><description><![CDATA[<p>Musste auf &quot;Werner Salomon&quot; warten. Der ist darin Experte aber der ist glaub ich nicht so oft hier.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291774</guid><dc:creator><![CDATA[..........]]></dc:creator><pubDate>Thu, 24 May 2007 19:54:00 GMT</pubDate></item></channel></rss>