[Scilab-users] Compute normals to 3D surface
Rafael Guerra
jrafaelbguerra at hotmail.com
Sun Jun 17 20:14:01 CEST 2018
Hi Lester,
Try xarrows().
At the end of your code, add:
// Compute normals to surface
[x1,y1,z1]=surfnorm(x,y,z);
sf = 0.2; // arrows scale factor
x1 = sf*x1 + x;
y1 = sf*y1 + y;
z1 = sf*z1 + z;
// Plot normal vectors to surface
xarrows([x(:)';x1(:)'],[y(:)';y1(:)'],[z(:)';z1(:)'],-1,2)
Regards,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180617/83a9e2b2/attachment.htm>
More information about the users
mailing list