doc:user:geometry:user:selections
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:user:selections [2015/01/26 12:15] – joris | doc:user:geometry:user:selections [2018/01/30 18:46] (current) – 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 | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | === BoundarySelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object (3D Models only) : | ||
+ | BoundarySelector () | ||
+ | |||
+ | === Boundary2DSelector === | ||
+ | |||
+ | Select nodes that are on the surface of a meshed object (2D Models only) : | ||
+ | |||
+ | Boundary2DSelector () | ||
+ | |||
+ | === InverseSelector === | ||
+ | |||
+ | Revert the effect of a selector | ||
+ | |||
+ | InverseSelector (selector) | ||
+ | |||
+ | where | ||
+ | | '' | ||
__Examples: | __Examples: | ||
Line 91: | Line 215: | ||
__Note__ : angles are computed with respect to the structural frame translated toward the center or the sphere. The elevation angle varies from $-\frac{\pi}{2}$ to $\frac{\pi}{2}$ and the azimuth angle from $0.0$ to $2 \pi$. | __Note__ : angles are computed with respect to the structural frame translated toward the center or the sphere. The elevation angle varies from $-\frac{\pi}{2}$ to $\frac{\pi}{2}$ and the azimuth angle from $0.0$ to $2 \pi$. | ||
+ | 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.1422270954.txt.gz · Last modified: 2016/03/30 15:22 (external edit)