gf_mesher_object¶
Synopsis
MF = gf_mesher_object('ball', vec center, scalar radius)
MF = gf_mesher_object('half space', vec origin, vec normal_vector)
MF = gf_mesher_object('cylinder', vec origin, vec n, scalar length, scalar radius)
MF = gf_mesher_object('cone', vec origin, vec n, scalar length, scalar half_angle)
MF = gf_mesher_object('torus', scalar R, scalar r)
MF = gf_mesher_object('rectangle', vec rmin, vec rmax)
MF = gf_mesher_object('ellipse', vec center, scalar r1, scalar r2[, scalar angle])
MF = gf_mesher_object('ellipsoid', vec center, vec radii[, mat axes])
MF = gf_mesher_object('polygon', mat vertices[, mat controls])
MF = gf_mesher_object('intersect', mesher_object object1 , mesher_object object2, ...)
MF = gf_mesher_object('union', mesher_object object1 , mesher_object object2, ...)
MF = gf_mesher_object('set minus', mesher_object object1 , mesher_object object2, ...)
MF = gf_mesher_object('extrusion', mesher_object object2d, scalar z0, scalar z1)
MF = gf_mesher_object('revolution', mesher_object object2d)
MF = gf_mesher_object('placed', mesher_object object, vec origin, vec axis1[, vec axis2])
Description :
General constructor for mesher_object objects.
This object represents a geometric object to be meshed by the experimental meshing procedure of Getfem.
Command list :
MF = gf_mesher_object('ball', vec center, scalar radius)Represents a ball of corresponding center and radius.
MF = gf_mesher_object('half space', vec origin, vec normal_vector)Represents an half space delimited by the plane which contains the origin and normal to <literal>normal_vector</literal>. The selected part is the part in the direction of the normal vector. This allows to cut a geometry with a plane for instance to build a polygon or a polyhedron.
MF = gf_mesher_object('cylinder', vec origin, vec n, scalar length, scalar radius)Represents a cylinder (in any dimension) of a certain radius whose axis is determined by the origin, a vector <literal>n</literal> and a certain length.
MF = gf_mesher_object('cone', vec origin, vec n, scalar length, scalar half_angle)Represents a cone (in any dimension) of a certain half-angle (in radians) whose axis is determined by the origin, a vector <literal>n</literal> and a certain length.
MF = gf_mesher_object('torus', scalar R, scalar r)Represents a torus in 3d of axis along the z axis with a great radius equal to <literal>R</literal> and small radius equal to <literal>r</literal>. For the moment, the possibility to change the axis is not given.
MF = gf_mesher_object('rectangle', vec rmin, vec rmax)Represents a rectangle (or parallelepiped in 3D) parallel to the axes.
MF = gf_mesher_object('ellipse', vec center, scalar r1, scalar r2[, scalar angle])Represents an ellipse in 2D of semi-axes <literal>r1</literal> and <literal>r2</literal>, the first one along the direction of angle <literal>angle</literal> (in radians, 0 by default) with the x axis.
MF = gf_mesher_object('ellipsoid', vec center, vec radii[, mat axes])Represents an ellipsoid in 3D of semi-axes <literal>radii</literal> (3 values), along the x, y and z axes, or along the columns of the 3 x 3 matrix <literal>axes</literal> (orthonormalized).
MF = gf_mesher_object('polygon', mat vertices[, mat controls])Represents a simple polygon in 2D (not necessarily convex), the columns of <literal>vertices</literal> (2 x n) being its vertices, in either order. With <literal>controls</literal> (4 x n), its sides may be curved: the side j, from the vertex j to the vertex j+1 (the last one to the first one), is the cubic Bezier curve of control points the vertex j, (controls[0, j], controls[1, j]), (controls[2, j], controls[3, j]) and the vertex j+1, or a segment if its column of <literal>controls</literal> is NaN.
MF = gf_mesher_object('intersect', mesher_object object1 , mesher_object object2, ...)Intersection of several objects.
MF = gf_mesher_object('union', mesher_object object1 , mesher_object object2, ...)Union of several objects.
MF = gf_mesher_object('set minus', mesher_object object1 , mesher_object object2, ...)Geometric object being object1 minus object2 (minus the union of object2, object3, … when more objects are given).
MF = gf_mesher_object('extrusion', mesher_object object2d, scalar z0, scalar z1)3D object obtained by extruding the 2D object <literal>object2d</literal> along the z axis, between z = <literal>z0</literal> and z = <literal>z1</literal>.
MF = gf_mesher_object('revolution', mesher_object object2d)3D object obtained by the revolution about the z axis of the 2D object <literal>object2d</literal>, given in the (r, z) half plane (r >= 0). The parts of <literal>object2d</literal> with r < 0 are ignored.
MF = gf_mesher_object('placed', mesher_object object, vec origin, vec axis1[, vec axis2])The object <literal>object</literal>, given in a local frame, placed with the origin of its frame at <literal>origin</literal> and its first axes along <literal>axis1</literal> (and <literal>axis2</literal> in 3D; the third one is axis1 x axis2): a rigid motion. The axes are orthonormalized (<literal>axis2</literal> is made orthogonal to <literal>axis1</literal>). For instance, an extrusion of a 2D object in any plane.
