Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Graphics Library > 3d_plot > geom3d

geom3d

projection from 3D on 2D after a 3D plot

Calling Sequence

[x,y]=geom3d(x1,y1,z1)

Arguments

x1,y1,z1

real vectors of the same size (points in 3D).

x,y

real vectors of the same size as x1, y1 and z1.

Description

After having used a 3D plot function such as plot3d, plot3d1 or param3d, geom3d gives the mapping between a point in 3D space (x1(i),y1(i),z1(i)) and the corresponding point (x(i),y(i)) in the projected 2D plan. Then all the 2D graphics primitives working on (x,y) can be used for superposition on the 3D plot.

Examples

deff("[z]=surface(x,y)","z=sin(x)*cos(y)")
t=%pi*(-10:10)/10;
// 3D plot of the surface
fplot3d(t,t,surface,35,45,"X@Y@Z")
// now (t,t,sin(t).*cos(t)) is a curve on the surface
// which can be drawn using geom3d and xpoly
[x,y]=geom3d(%pi/2,0,surface(%pi/2,0))

Authors

J.Ph.C.

<< genfac3d 3d_plot hist3d >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:43 CET 2011