setcamdistance

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.2, Creation date: 2022-12-09, Last change: 2025-09-15

The distance of the camera position relative to the target position is fixed

Description

This function belongs to a set of function useful for AIM lectures

See Also: setcamtarget , setcamzoom , setcamdirection

Example Illustration

 missing image of setcamdistance(nd,zf)

Syntax

setcamdistance([nd,zf])

Input Parameter

nd: new distance; default is unchanged
zf: zoom factor at this positionl default is 1

Examples


load AIM.mat; VM=V; [AM,as]=VMresize(VM,[0.5 0.5 0.5],vs); AM(:,230:256,:)=0;
SG=SGofVMisosurface(AM>1400,as);
SGfigure; SGplotalpha(SG,'w',0.5); rotate3dlight('off')
setcamdistance
setcamdistance(1000)
setcamdistance(1000,2)





Copyright 2022-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