doc:user:geometry:mesh:3d
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:mesh:3d [2015/05/22 19:31] – [Mesher by extrusion] papeleux | doc:user:geometry:mesh:3d [2021/11/19 14:52] (current) – papeleux | ||
---|---|---|---|
Line 19: | Line 19: | ||
| '' | | '' | ||
- | In this case, the '' | + | In this case, the '' |
{{ doc: | {{ doc: | ||
Line 85: | Line 85: | ||
=== Example ==== | === Example ==== | ||
- | Extrusion of a circle pierced by a square (see '' | + | Extrusion of a circle pierced by a square (see '' |
{{commit: | {{commit: | ||
{{: | {{: | ||
{{: | {{: | ||
+ | {{: | ||
The definition and meshing of the circle can be seen in the the file. To extrude the result ('' | The definition and meshing of the circle can be seen in the the file. To extrude the result ('' | ||
Line 96: | Line 97: | ||
mesher.setFillGroup(True) | mesher.setFillGroup(True) | ||
mesher.setDirection(0.0, | mesher.setDirection(0.0, | ||
- | mesher.setLength(8) | + | mesher.setLength(length) |
- | mesher.setNbOfLayers(10) | + | mesher.setNbOfLayers(nLayers, dist = 1.0) |
mesher.setAnglefct(fctAngle) | mesher.setAnglefct(fctAngle) | ||
mesher.setXfct(fctX) | mesher.setXfct(fctX) | ||
Line 109: | Line 110: | ||
| setLength | | setLength | ||
- | | setNbOfLayers | + | | setNbOfLayers |
+ | | | dist : ratio between the length of the last and first element (default : dist = 1.0) | | ||
| setAnglefct(fctAngle) | Application of a rotation of slices around extrusion vector (direction ' | | setAnglefct(fctAngle) | Application of a rotation of slices around extrusion vector (direction ' | ||
- | | fctAngle | One parameter defining rotation of slices function in degrees (t) - t=[0,1] | | + | | fctAngle | One parameter defining rotation of slices function in degrees (t) - t=[0, |
| setXfct(fctX) | Application of a modification of the generatrice direction in X Direction | | | setXfct(fctX) | Application of a modification of the generatrice direction in X Direction | | ||
| setYfct(fctY) | Application of a modification of the generatrice direction in Y Direction | | | setYfct(fctY) | Application of a modification of the generatrice direction in Y Direction | | ||
- | | fctX/fctY | One parameter defining modification of generatrice : fct(t) - t=[0,1] | | + | | fctX/fctY | One parameter defining modification of generatrice : fct(t) - ATTENTION |
| execute | | execute | ||
| getLastLayer(no) | returns the group grpNo (number '' | | getLastLayer(no) | returns the group grpNo (number '' | ||
Line 189: | Line 191: | ||
mesher.execute() | mesher.execute() | ||
- | | gobject | + | | gobject |
- | | group | Group father of the 3D mesh elements | + | | group | Group father of the 3D mesh elements |
- | | axe | Line which defines the revolution axis | + | | axe | Line which defines the revolution axis | |
- | | setLength | + | | setAngle |
| setNbOfLayers | | setNbOfLayers | ||
+ | | setFillGroup | ||
| execute | | execute | ||
+ | | getLastLayer | ||
==== Example ==== | ==== Example ==== | ||
{{: | {{: |
doc/user/geometry/mesh/3d.1432315863.txt.gz · Last modified: (external edit)