VLprojection

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Experiments
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-01, Last change: 2025-09-14

returns projected vertex lists on a surface/solid for given vertex list

Description

The projection surface is given as a solid. Now either by parallel projection or central projection the resulting vertex posions on the surface are returned. Also the distance and the index of the hit triangles are returned. It is important to understand that the use of EL or FL needs an additional handling, since in this case additional points have to be created similar to SGbool.
There is also another possibility to calculate projections on pixel/voxel accuracy using view and axes.

See Also: VLFLpprojectPL , VLFLpprojectPLEL , intersectstriangle , crosspointVLFL , crosspointVLFL2 , crosspointsVLFLofT

Example Illustration

 missing image of VLprojection(SG,VL,ez,cent)

Syntax

[VLN,DL,fi]=VLprojection([SG,VL,ez,cent])

Input Parameter

SG: SG.VL, SG.FL; solid or surface as projection plane
VL: CPL,CVL or VL as vertex list to project
ez: beam direction (cent=false) or beam origin (cent=true)
cent: central (true) or parallel projection (false); default = false;

Output Parameter

VLN: Projected vertex list
DL: Distance list for each vertex
fi: facet index list for each point

Examples

Try central and parallel projection
SG=SGtransP(SGbox([80,80,5]),[0 0 40]); VL=VLaddz(CPLsample(12));
VLprojection(SG,VL,[0 0 1],false) % parallel projection
VLprojection(SG,VL,[0 0 -30],true) % central projection




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21