Skip to content

XML for ImportGrid #338

Answered by adku1173
StefanS0 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is an example for the XML import. You do not necessarily have to write an .xml file. A grid object can also be instantiated from a Numpy array.
This is the grid.xml file:

<?xml version="1.0" encoding="utf-8"?>
<Grid name="rect">
   <pos Name="Point 1"	x="	-0.021000000"	y="	-0.063000000"	z="0" />
   <pos Name="Point 2"	x="	-0.063000000"	y="	-0.063000000"	z="0" />
   <pos Name="Point 3"	x="	-0.021000000"	y="	-0.021000000"	z="0" />
   <pos Name="Point 4"	x="	-0.063000000"	y="	-0.021000000"	z="0" />
   <pos Name="Point 5"	x="	-0.021000000"	y="	0.021000000"	z="0" />
   <pos Name="Point 6"	x="	-0.063000000"	y="	0.021000000"	z="0" />
   <pos Name="Point 7"	x="	-0.021000000"	y="	0.063000000"	z=

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adku1173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #79 on October 21, 2024 13:49.