/VRML2mesh.cpp//// /stdafx.cpp//// /stdafx.h////
Mesh+Processing 源代码
汇集 Mesh+Processing 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
x=linspace(-1,1,10); y=linspace(-1,1,10); [X,Y]=meshgrid(x,y); Z=(1-X.^2-Y.^2)^(1/2); mesh(X,Y,Z);
t=0:pi/10:2*pi; [X,Y,Z]=cylinder(4*cos(t)+1); mesh(X,Y,Z)
x=[0.0 0.1 0.3 0.5 0.7 0.9 1.0] y=[0 0.02618 0.07854 0.1309 0.1833 0.2356 0.2618] z=[0 0 0 0 0 0 0 0 0.1758 0.4479 0.6339 1.034…
s = [1 2 1; 0 0 0; -1 -2 -1]; A = zeros(10); A(3:7,3:7) = ones(5); H = conv2(A,s); mesh(H)
%方法1: x=-1:0.05:1;y=x; [x,y]=meshgrid(x,y); z=x.^2-2*y.^2;mesh(x,y,z) %方法2: syms x y;f=x^2-2*y^2; ezmesh(f) %-2 ≤x≤2 ,-2 ≤y≤2…