[Scilab-users] Punch a hole into a facet
Samuel Gougeon
sgougeon at free.fr
Tue Oct 2 21:27:22 CEST 2018
Le 01/10/2018 à 16:35, Jens Simon Strom a écrit :
> Thanks Samuel,
> %nan works with surf, not with plot3d. The latter is attractive
> because it can handle polygons - but unfortunately not those with
> embayments: Facet coloring exeeds the contour (Vers. 5.5.2)
This is fixed in Scilab 6.
> I have to assemble my facet with several windos from partially
> overlapping rectangles
You may use this:
xf = [1 -1 -1 1 1 0.5 0.5 -0.5 -0.5 0.5]';
yf = [-1 -1 1 1 -1 -0.5 0.5 0.5 -0.5 -0.5]';
zf = zeros(yf);
red = color("red");
plot3d(xf, yf, list(zf, red))//Facet
set(gce(), "foreground", red, "hiddencolor", red);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20181002/06060833/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hinbpbdccjniaknh.png
Type: image/png
Size: 7668 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20181002/06060833/attachment.png>
More information about the users
mailing list