doc:user:geometry:user:points
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:user:geometry:user:points [2013/07/12 12:38] – external edit 127.0.0.1 | doc:user:geometry:user:points [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Points ====== | ||
+ | ===== Definition ===== | ||
+ | |||
+ | Geometrical '' | ||
+ | '' | ||
+ | |||
+ | pt = pointset.define(number, | ||
+ | |||
+ | with | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | 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 | ||
+ | pointset = geometry.getPointset() | ||
+ | | ||
+ | p1 = pointset.define(1, | ||
+ | p2 = pointset.define(2, | ||
+ | p3 = pointset.define(3, | ||
+ | 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 ===== | ||
+ | {{: | ||
+ | Temporary points can be used to define '' | ||
+ | |||
+ | pt = Point(1, x, y, z) | ||
+ | |||
+ | Since this Point was not defined using '' |