Last change of this documentation page: 2022-06-02 of SolidGeometry 3.7
CVLofCPLbendspherical(CPL,Rx,de,Ry,Rz,cent)- bends a CPL on a cylinder or spherical ellipsoid

CVLofCPLbendspherical(CPL,Rx,de,Ry,Rz,cent)% CVLofCPLbendspherical(CPL,Rx,de,Ry,Rz,cent) - bends a CPL on a cylinder or spherical ellipsoid
% (by Tim Lueth, VLFL-Lib, 2017-MÄR-29 as class: SURFACES)
%
% Just calls and is exactly the same as PLbending of 2017-March-29
% This fnctn bends closed polygon line on a radial sphere (cylinder or
% ball). The original CPL is not modified, i.e. it is not intended to add
% additional points on the surface before the bending:
% Use CPLaddauxpoints to add points on the contour.
% Use PLFLofCPLdelaunayGrid to add points on the surface
% (Status of: 2020-09-14)
%
% Introduced first in SolidGeometry 5.0
%
% See also: CPLaddauxpoints, PLFLofCPLdelaunayGrid, CVLofCPLbendsinus,
% SGbending
%
% CVL=CVLofCPLbendspherical(CPL,[Rx,de,Ry,Rz,cent])
% === INPUT PARAMETERS ===
% CPL: Point List
% Rx: Radius Rx
% de: distance/intrusion; default is -0.1
% Ry: Optional radius Ry; default is 10000
% Rz: Optional radius Rz; default is Rx
% cent: center solid before bending; default is true
% === OUTPUT RESULTS ======
% CVL: Vertex list of the bended point list
%
% EXAMPLE: Bends a CPL 1 mm above a sphere
% CPL=CPLoftext('Test'); PLbending(CPLaddauxpoints(CPL,1),50,10,50,50);
% [PL,FL,EL]=PLFLofCPLdelaunayGrid(CPL,1,1,1); VLFLplot(PL,FL);
% PL=PLbending(PL,50,10,50,50); VLFLplot(PL,FL);
%
% See also: CPLaddauxpoints, PLFLofCPLdelaunayGrid, CVLofCPLbendsinus,
% SGbending
%
%
% Copyright 2017-2020 Tim C. Lueth

PLbending(PL,Rx,de,Ry,Rz,cent)- bends a CPL on a cylinder or spherical ellipsoid

PLbending(PL,Rx,de,Ry,Rz,cent)% PLbending(PL,Rx,de,Ry,Rz,cent) - bends a CPL on a cylinder or spherical ellipsoid
% (by Tim Lueth, VLFL-Lib, 2017-MÄR-29 as class: SURFACES)
%
% This fnctn bends closed polygon line on a radial sphere (cylinder or
% ball). The original CPL is not modified, i.e. it is not intended to add
% additional points on the surface before the bending:
% Use CPLaddauxpoints to add points on the contour.
% Use PLFLofCPLdelaunayGrid to add points on the surface
% (Status of: 2018-08-20)
%
% Introduced first in SolidGeometry 3.7
%
% See also: CPLaddauxpoints, PLFLofCPLdelaunayGrid,
% CVLofCPLbendspherical, CVLofCPLbendsinus, SGbending
%
% PLN=PLbending(PL,[Rx,de,Ry,Rz,cent])
% === INPUT PARAMETERS ===
% PL: Point List
% Rx: Radius Rx
% de: distance/intrusion; default is -0.1
% Ry: Optional radius Ry; default is 10000
% Rz: Optional radius Rz; default is Rx
% cent: center solid before bending; default is true
% === OUTPUT RESULTS ======
% PLN: Vertex list of the bended point list
%
% EXAMPLE: Bends a CPL 1 mm above a sphere
% CPL=CPLoftext('Test'); PLbending(CPLaddauxpoints(CPL,1),50,10,50,50);
% [PL,FL,EL]=PLFLofCPLdelaunayGrid(CPL,1,1,1); VLFLplot(PL,FL);
% PL=PLbending(PL,50,10,50,50); VLFLplot(PL,FL);
%
% See also: CPLaddauxpoints, PLFLofCPLdelaunayGrid,
% CVLofCPLbendspherical, CVLofCPLbendsinus, SGbending
%
%
% Copyright 2017-2020 Tim C. Lueth

SGbending(SG,Rx,de,Ry,Rz,cent)- beates a solid geoemtry on a cylinder or spherical ellipsoid

SGbending(SG,Rx,de,Ry,Rz,cent)% SGbending(SG,Rx,de,Ry,Rz,cent) - beates a solid geoemtry on a cylinder or spherical ellipsoid
% (by Tim Lueth, VLFL-Lib, 2017-MÄR-29 as class: SURFACES)
%
% This fnctn bends a solid geometry on a radial sphere (cylinder or
% ball). The original solid is not modified, i.e. it is not intended to
% add additional points on the surface before the bending:
% Use CPLaddauxpoints to add points on the contour
% Use PLFLofCPLdelaunayGrid to add point on the surface
% Use SGofCPLzdelaunayGrid to create solids with a grid
% (Status of: 2018-08-20)
%
% Introduced first in SolidGeometry 3.7
%
% See also: SGofCPLzdelaunayGrid, SGofCPLsphere, CPLaddauxpoints,
% PLFLofCPLdelaunayGrid
%
% SGN=SGbending(SG,[Rx,de,Ry,Rz,cent])
% === INPUT PARAMETERS ===
% SG: Solid Geometry
% Rx: Radius Rx
% de: distance/intrusion; default is -0.1
% Ry: Optional radius Ry; default is 10000
% Rz: Optional radius Rz; default is Rx
% cent: center solid before bending; default is true
% === OUTPUT RESULTS ======
% SGN: Solid Geometry
%
% EXAMPLE: Bends a surface 1 mm above a sphere
% SG=SGofCPLzdelaunayGrid(CPLoftext('Test'),2,1,1,1);
% SGbending(SG,50,1,20,50)
% SGbending(SG,50,1,20,50,false)
%
% See also: SGofCPLzdelaunayGrid, SGofCPLsphere, CPLaddauxpoints,
% PLFLofCPLdelaunayGrid
%
%
% Copyright 2017-2018 Tim C. Lueth

SGcutBB(SG,ax,de)- cuts out a bounding box from a solid

SGcutBB(SG,ax,de)% SGcutBB(SG,ax,de) - cuts out a bounding box from a solid
% (by Tim Lueth, VLFL-Lib, 2017-MÄR-29 as class: SURFACES)
%
% THis fnctn uses SGcut for creating the output result, not SGbool. It
% must be clear, that this fnctn creates a lot of additional points at
% the surfaces (Status of: 2018-11-06)
%
% Introduced first in SolidGeometry 3.7
%
% See also: SGcut, SGbool, SGcut2, SGcutT, BBofSGcutT
%
% SGN=SGcutBB(SG,ax,[de])
% === INPUT PARAMETERS ===
% SG: Solid geometry
% ax: axis, such as Bounding box
% de: delta to add on each side; default is 0;
% === OUTPUT RESULTS ======
% SGN: resulting solid
%
% EXAMPLE:
% SGcutBB (SGbox([30,20,10]),[0 5 -2 2 0 4])
% SGcutBB (SGbox([30,20,10]),[-inf inf -3 3 -2 2])
% A=SGbool('x',SGbox([30,20,10]),SGofBB([-1000 1000 -3 3 -2 2])); SGfigure(A)
%
% See also: SGcut, SGbool, SGcut2, SGcutT, BBofSGcutT
%
%
% Copyright 2017-2018 Tim C. Lueth

insidePLELdelaunay(PL,EL,GPL,csplit)- returns whether a point is inside/outside a contour

insidePLELdelaunay(PL,EL,GPL,csplit)% insidePLELdelaunay(PL,EL,GPL,csplit) - returns whether a point is inside/outside a contour
% (by Tim Lueth, VLFL-Lib, 2017-MÄR-28 as class: ANALYTICAL GEOMETRY)
%
% This fnctn use delaunayTriangulation and makes sense only for larger
% grid point list not for individual Points. Works only with 2D point
% list and a correct contour edge list.
% SINCE REL 4.5 it makes more sense to used polyshape's isinterior or
% insideCPS. (Status of: 2018-08-20)
%
% Introduced first in SolidGeometry 3.7
%
% See also: insidePLEL, insideCPS
%
% [ki,XVL,XFL,XEL]=insidePLELdelaunay(PL,EL,GPL,[csplit])
% === INPUT PARAMETERS ===
% PL: 2D Point list
% EL: Contour edge list
% GPL: Grid point list or Point list
% csplit: false=no split points allowed; true=split points allowed;
% default is false
% === OUTPUT RESULTS ======
% ki: +1==inside, -1==outside, 0== on the contour
% XVL: Point List
% XFL: Face List
% XEL: Edge list
%
% EXAMPLE:
% CPL=CPLaddauxpoints(CPLsample(12),1);
% [PL,EL]=PLELofCPL(CPL);
%
%
% See also: insidePLEL, insideCPS
%
%
% Copyright 2017-2019 Tim C. Lueth
RapidWeaver Icon

Last Change Oct 2023 for SG-Lib 5.3