AnyCAD C#開發-BrepTools::MakeFace創建一個面


AnyCAD2020+VS2012

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AnyCAD.Platform; using AnyCAD.Exchange; using AnyCAD.Presentation; namespace WindowsFormsApplication3 { public partial class Form1 : Form { AnyCAD.Presentation.RenderWindow3d renderView; AnyCAD.Platform.BrepTools BrepToolsFeat = new AnyCAD.Platform.BrepTools(); AnyCAD.Exchange.StepReader reader = new AnyCAD.Exchange.StepReader(); public Form1() { InitializeComponent(); this.renderView = new AnyCAD.Presentation.RenderWindow3d(); this.Controls.Add(renderView); renderView.Size = this.ClientSize; } private void button1_Click(object sender, EventArgs e) { //創建橢圓 TopoShape ellipse1 = BrepToolsFeat.MakeEllipse(new Vector3(0, 0, 0), 60, 40, new Vector3(0, 0, 1)); //創建一個面 TopoShape face1 = BrepToolsFeat.MakeFace(ellipse1); //顯示幾何 int face1ID = 0; renderView.ShowGeometry(face1, face1ID); } private void button2_Click(object sender, EventArgs e) { } } } Caesar盧尚宇 2020年6月29日


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM