[Scilab-users] Compute normals to 3D surface

Stéphane Mottelet stephane.mottelet at utc.fr
Sun Jun 17 19:39:26 CEST 2018


Hello,

If you are using scilab 5.5.2 you can install the Plotlib (Atoms package). There is an example of normals plotting in the help page of quiver3.

S.

> Le 17 juin 2018 à 19:29, Lester Anderson <arctica1963 at gmail.com> a écrit :
> 
> 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/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
>> 
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
> 
> <Moebius2.sce>
> <moebiusnormals.gif>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180617/f6249219/attachment.htm>


More information about the users mailing list