[Scilab-users] Compute normals to 3D surface

Lester Anderson arctica1963 at gmail.com
Sun Jun 17 19:29:08 CEST 2018


Hi Stéphane, Scilab users

Thanks for the information. I retrieved the surfnorm function, and the
associated functions that it called internally. I still cannot figure out
how it should work with the existing code;had to add the functions into the
main sce file to get it doing something (not sure why!).

The attached code shows where I am at so far,and a small image of what I
would like to get to.

[x1,y1,z1] = surfnorm(x,y,z) does generate value,but plot3d does not give a
meaningful result.Perhaps I am missing something very obvious, so any
pointers are great.

Scilab 6.0.1 (64 bit Windows)

Thanks in advance
Lester

On 17 June 2018 at 07:47, Stéphane Mottelet <stephane.mottelet at utc.fr>
wrote:

> Hello,
>
> In the Plotlib you have an equivalent function :
>
>
> http://forge.scilab.org/index.php/p/plotlib/source/tree/
> HEAD/tags/0.46/plotlib/macros/surfnorm.sci
>
> S.
>
> > Le 17 juin 2018 à 00:40, Lester Anderson <arctica1963 at gmail.com> a
> écrit :
> >
> > Hello all,
> >
> > I was wondering if it was possible to compute and visualise the normals
> to a 3D surface in Scilab? I think Matlab has something called surfnorm;is
> there something similar for Scilab?
> >
> > I have attached the basic code for the Moebius strip, and it would be
> useful to showwhat happens to the normals at say z=0, but not sure how one
> would go about this. Perhaps this has already been solved.
> >
> > Cheers
> > Lester
> > <Moebius.sce>
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLm
> Zy/lists.scilab.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180617/24705068/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Moebius2.sce
Type: application/octet-stream
Size: 2259 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180617/24705068/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moebiusnormals.gif
Type: image/gif
Size: 6314 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180617/24705068/attachment.gif>


More information about the users mailing list