doc:user:geometry:user:points
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:user:geometry:user:points [2015/01/07 11:09] – [Note] boman | doc:user:geometry:user:points [2015/01/07 12:34] – [Note] boman | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Definition ===== | ===== Definition ===== | ||
- | Defining the geometry is a significant step. Indeed, in Metafor, most commands | + | Geometrical '' |
- | + | '' | |
- | '' | + | |
pt = pointset.define(number, | pt = pointset.define(number, | ||
Line 14: | Line 13: | ||
===== Example ===== | ===== Example ===== | ||
- | Definition of the 4 vertices of a square of length $L$: | + | Definition of the 4 vertices of a square of length $L=5$. The python variable $L$ is used here to parametrize the positions of the points. |
L=5 | L=5 | ||
Line 23: | Line 22: | ||
p3 = pointset.define(3, | p3 = pointset.define(3, | ||
p4 = pointset.define(4, | p4 = pointset.define(4, | ||
+ | | ||
+ | The following command prints the created points as a list: | ||
+ | print pointset | ||
+ | which produces the following output: | ||
+ | PointSet | ||
+ | Point #1 nDB=[1] (pos in DB) p=[0 0 0] | ||
+ | Point #2 nDB=[2] (pos in DB) p=[5 0 0] | ||
+ | Point #3 nDB=[3] (pos in DB) p=[5 5 0] | ||
+ | Point #4 nDB=[4] (pos in DB) p=[0 5 0] | ||
| | ||
===== Note ===== | ===== Note ===== | ||
- | {{:doc: | + | {{: |
Temporary points can be used to define '' | Temporary points can be used to define '' | ||
doc/user/geometry/user/points.txt · Last modified: 2016/03/30 15:23 by 127.0.0.1