doc:user:geometry:user:selections
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:user:geometry:user:selections [2015/01/08 16:47] – [Node selection - Groups] boman | doc:user:geometry:user:selections [2018/01/30 18:44] – papeleux | ||
---|---|---|---|
Line 20: | Line 20: | ||
===== Adding nodes (simple) ===== | ===== Adding nodes (simple) ===== | ||
- | |||
groupset(number).add(GObject) | groupset(number).add(GObject) | ||
Line 26: | Line 25: | ||
groupset(number).addMeshPointsInBox(xmin, | groupset(number).addMeshPointsInBox(xmin, | ||
groupset(number).addMeshPointsFromObject(target, | groupset(number).addMeshPointsFromObject(target, | ||
+ | groupset(number).addInnerMeshPointsFromObject(target, | ||
| | ||
where | where | ||
| '' | | '' | ||
- | | '' | + | | '' |
| '' | | '' | ||
| '' | | '' | ||
- | | '' | + | | '' |
- | | '' | + | | '' |
+ | nb : addInnerMeshPointsFromObject does not add nodes on boundary of '' | ||
===== Sorting the selected nodes ===== | ===== Sorting the selected nodes ===== | ||
Line 57: | Line 58: | ||
===== Advanced features (Selectors) ===== | ===== Advanced features (Selectors) ===== | ||
- | Adding nodes from the geometric object '' | + | Adding nodes from the geometric object '' |
groupset(number).addMeshPointsFromObject(target, | groupset(number).addMeshPointsFromObject(target, | ||
Line 63: | Line 64: | ||
where '' | where '' | ||
- | * '' | + | === BoxSelector=== |
- | | + | |
- | | + | Selection |
- | | + | |
- | | + | BoxSelector(xMin, xMax, yMin, yMax, zMin, zMax) |
- | | + | |
- | | + | where |
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === RangeSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | RangeSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === DistSelector === | ||
+ | |||
+ | Spherical | ||
+ | |||
+ | DistSelector (Cx, Cy, Cz, R) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === SectorSphericalSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | SectorSphericalSelector (Cx, Cy, Cz, rMin, rMax, thetaMin, thetaMax, phiMin, phiMax) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | __Note__ : angles are computed with respect to the structural frame translated toward the center or the sphere. | ||
+ | |||
+ | === AnnealedSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | AnnealedSelector(lock, x, y, z, rMin, rMax, hMin, hMax) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | gets all nodes situated from the two cylinders of axis '' | ||
+ | |||
+ | === SectorAnnealedSelector === | ||
+ | |||
+ | Selection | ||
+ | |||
+ | SectorAnnealedSelector(lock, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === TorrusSelector === | ||
+ | |||
+ | Selection of nodes inside a torus : | ||
+ | |||
+ | TorrusSelector(axe, | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === EllipseSelector === | ||
+ | |||
+ | Selection within an ellipse : | ||
+ | EllipseSelector (lock, Cx, Cy, CZ, a, b) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | === PlaneSelector === | ||
+ | |||
+ | Selection on one side of a plane : | ||
+ | PlaneSelector (plane, dir) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | === InverseSelector | ||
+ | |||
+ | Revert the effect of a selector | ||
+ | InverseSelector (selector) | ||
+ | |||
+ | where | ||
+ | | '' | ||
+ | |||
+ | === BoundarySelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object | ||
+ | BoundarySelector () | ||
+ | |||
+ | === Boundary2DSelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object (2D Models only) : | ||
+ | Boundary2DSelector () | ||
__Examples: | __Examples: | ||
Line 89: | Line 210: | ||
gets all nodes in the spherical sector of center (Cx,Cy,Cz), of minimal and maximal radii rMin and rMax, of minimal and maximal azimuth angle thetaMin and thetaMax, and of minimal and maximal elevation angle pHiMin and phiMax. | gets all nodes in the spherical sector of center (Cx,Cy,Cz), of minimal and maximal radii rMin and rMax, of minimal and maximal azimuth angle thetaMin and thetaMax, and of minimal and maximal elevation angle pHiMin and phiMax. | ||
- | __Note__ : angles are calculated | + | __Note__ : angles are computed |
+ | group.addMeshPoints(TorrusSelector(Axe(curveset(1)), | ||
+ | | ||
+ | gets all nodes in the toroidal sector defined by the revolution axis Axe(curveset(1)), | ||
+ | |||
group.addMeshPoints(AnnealedSelector(TX, | group.addMeshPoints(AnnealedSelector(TX, | ||
doc/user/geometry/user/selections.txt · Last modified: 2018/01/30 18:46 by papeleux