gmmake_circ.m
来自「matlab有限元分析工具,比经较全面的一个手册,请大家下载呀」· M 代码 · 共 25 行
M
25 行
function b = gmmake_circ(numsubdiv)% gmmake_circ: Make a cubic bezier spline approximation to a circle.% b = gmmake_circ(numsubdiv)% returns a brep b that is a cubic bezier spline with numsubdiv% breakpoints to the unit circle.if numsubdiv < 3 error('Number of subdivisions must be at least 3')end[vertex,code] = gm_circ_approx(0,2*pi,numsubdiv);vertex = vertex(1:3*numsubdiv,:);code = code(1:3*numsubdiv,:);code(1) = 0;b = gm_cpoly(vertex,code);% ------------------------------------------------------------------% Copyright (c) 1999 by Cornell University. All rights reserved% See the accompanying file 'Copyright' for authorship information,% the terms of the license governing this software, and disclaimers% concerning this software.% ------------------------------------------------------------------% This file is part of the QMG software. % Version 2.0 of QMG, release date September 3, 1999% ------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?