Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:user:points

This is an old revision of the document!


Table of Contents

Points

Definition

Defining the geometry is a significant step. Indeed, in Metafor, most commands are applied on geometric entities, and not on the mesh itself. Therefore, the data sets are easy to parametrize, since the number of mesh is not taken into account in the writing of boundary conditions.

Points are the most basic entities. It is from the Points that most Curves are defined.

pt = pointset.define(number, x, y [, z])
number user number of the point (must be unique and $\geq 1$)
x, y, z coordinates of this point ($z=0$ by default)

Example

The four summits of a square of length $L$:

L=5
pointset = geometry.getPointset()

pt1 = pointset.define(1, 0, 0)
pt2 = pointset.define(2, L, 0)
pt3 = pointset.define(3, L, L)
pt4 = pointset.define(4, 0, L)

Note

Temporary points can be used to define Axes or Trihedra:

pt0 = Point(0, 1, 0, 0)

Since this point was not defined using pointset.define, it will not be found in the pointset, but only in the object that it will help create (Axe or Trièdre) .

doc/user/geometry/user/points.1407403947.txt.gz · Last modified: 2016/03/30 15:22 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki