1. 函數接口
2. 線性偏轉與角度偏轉
2.1. theLineDeflection:線性偏轉
根據文檔推導下
isRelative傳入Standard_True時,theLineDeflection為相對值。
參看isRelative說明
//! @param isRelative if TRUE deflection used for discretization of
//! each edge will be * . Deflection
//! used for the faces will be the maximum deflection of their edges.
a對應圓心角,與推導的不一致,推導出來的a若是15度,則圓心角應該是30度,對應12條邊。實際卻大于12條,大概18條。occ提供的這個參數有點沒搞懂,暫時就這樣擱置這個問題吧。
2.2. theAngleDeflection: 角度偏轉
Standard_Real angDeflection = TMP_PI * 60 / 180; //theta的一半為拆分邊對應的圓心角,
假如對一圓面進行拆分
TMP_PI * 60 / 180; //表示是30度的圓心角,邊數為360/30 = 12
TMP_PI * 120 / 180; //表示是60度的圓心角,邊數為360/60 = 6
按文檔推導下:
3.訪問網格化信息
You can obtain information on the shape by first exploring it. To access triangulation of a face in the shape later, use BRepTool::Triangulation. To access a polygon, which is the approximation of an edge of the face, use BRepTool::PolygonOnTriangulation.