曲面模型建構
在草圖、Part Studio 中提供此功能
曲面是零件外部的單邊呈現,並沒有質量或厚度。
曲面模型建構此一模型建構方式可讓設計人員建立實體建模工具無法單獨產生的複雜幾何特徵和有機形狀。與實體模型建構相比,曲面模型建構更適用於自由的形狀和特徵。
例如,一個實心立方體可以被分成六個不同的面。每個面代表一個包圍實體體積的曲面,從而形成立方體。曲面建模可讓您將立方體的每個面建構成一個單獨的曲面。在建立了立方體的六個邊之後,將曲面都加在一起,從而建立一個封閉的體積來形成實體零件。
曲面幾何可用來:
-
建立實體零件:
-
使用「加厚」特徵來將曲面加厚以形成實體零件。
-
使用「封閉」特徵,形成一個封閉的體積來建立實體零件,其中每條邊線都與兩個面相連。
-
-
建立幾何建構線 (模具的分模線、將幾何混合與橋接在一起、支援疊層拉伸與填補以配對曲率和相切)。
-
使用更複雜的幾何取代實體面 (使用「替換面」特徵)。
曲線和曲面連續性測量的是兩條曲線或兩個曲面連接處的平滑度。在建構曲線與曲面以建立幾何模型時,若要產生最流暢或連續的有機形狀,連續性變得至關重要。
G (或幾何) 標識是用來決定曲線/曲面的連續性 (G0 到 G3)。在 Onshape 中,這些標識與許多曲線和曲面特徵中的 "配對" 選項相關聯 (例如,橋接曲線、圓角、面混合與其他等等)。這些連續性的分類及其定義概述如下:
-
G0 (配對位置) - 配對 2 個曲線/曲面間的位置。兩個曲線/曲面會在接合處共享相同的位置。
-
G1 (配對相切) - 配對 2 個曲線/曲面間的相切。兩個曲線/曲面相接觸並共享一個到兩端相等的共同角度。圓角是此類連續性配對的一個很好範例。
-
G2 (配對曲率) - 配對 2 個曲線/曲面間的曲率 (半徑)。兩個曲線/曲面相接觸且相切,並在相接處有相同的曲率 (兩者有相同的半徑)。
-
G3 (配對流動) - 配對 2 個曲線/曲面間的流動。兩個曲線/曲面相接觸且相切,會有類似的曲率,並顯示曲率在其長度方向上的變化量 (流動)。
使用橋接曲線特徵,您可以建立兩條曲線間的一條橋接曲線 (下方以橘色顯示) ,然後將其開始與結束位置、相切性、曲率以及流動配對 (或是兩者的某種組合;例如,在開始處「配對位置」,在結束處「配對曲率」):
從左到右:G0 (配對位置)、G1 (配對相切)、G2 (配對曲率)、 G3 (配對流動)
將此延伸到曲線之外,您可以在 2 個曲面間建立一個曲面,然後以相同的方式配對其開始與結束的連續性:
從左到右:G0 (配對位置)、G1 (配對相切)、G2 (配對曲率)、 G3 (配對流動)
當使用曲線/曲面分析工具來分析曲線或曲面的連續性時,您可以看到隨著每個連續性配對的進展,曲線/曲面間的連接變得更為平滑,並顯示更平滑的曲率梳。無法使用曲線/曲面分析來分析 G0 (配對位置) ,因為直線並沒有曲率。
從左到右:G1 (配對相切)、G2 (配對曲率)、 G3 (配對流動)
從左到右:G1 (配對相切)、G2 (配對曲率)、 G3 (配對流動)
當使用斑馬條紋工具來分析曲線或曲面的連續性時,隨著每個連續性配對的進展,曲線/曲面間的連接變得更為平滑。 當您從 G0 (配對位置) 上升至 G2 (配對連續) 時,曲面邊上的斑馬條紋變得越來越平滑:
從左到右:G0 (無連續性)、G1 (配對相切)、G2 (配對曲率)、與 G2 (配對曲率)
下方的範例說明在兩條非線性曲線間的橋接曲線的連續性。橋接曲線是以紫紅色來表示的。第一欄中顯示「橋接曲線」對話方塊,以及連續性的選擇與結果 (啟用了「編輯控制點」),中間欄顯示停用了「編輯控制點」的橋接曲線 ,最後的欄位顯示對所有曲線的曲線/曲面分析:
在您模型中為曲線和曲面連接的連續性選擇完全取決於在每個交會處/邊線所需的連續性等級。並沒有正確或是錯誤的曲面連續性。
此外,較高階的連續性需要更多的控制點來達成。G0 僅需要一個控制點 (端點),G1 需要兩個,G2 需要三個,G3 則需要四個。兩端均受 G3 限制的貝茲曲線至少需要八個控制點,每端四個。
使用曲面建模需要額外的步驟才能建立高品質的曲面。這些步驟會增加效能,避免瑕疵,以及簡化複雜曲面的生成。
-
曲線/曲面分析 - 視覺檢視與分析在 Part Studio 中草圖的曲率。透過按一下 Shift+c,在草圖、零件或曲面上按右鍵,或是點按介面右下角的「顯示分析工具」圖示 (
) 來存取「曲線/曲面分析」對話方塊。These tools show curvature combs (the intensity of the curvature at a certain point along an edge or face), and control point grids. Ideally, the curvature combs should have steady increases or decreases.
The following example looks good without evaluation tools but shows extreme fluctuations in curvature (especially in the red U direction below left) when Curvature/surface analysis is enabled. The outer edge is especially problematic (below right):
Additionally, the control point grid is a measure of the complexity of the surface. The flow and density of control points can illustrate a model with too many control points:
-
Connection analysis - Assess or report the connection between curves and surfaces in a Part Studio or Sketch. Access the Connection analysis dialog from the Show analysis tools icon (
) at the bottom right corner of the interface. Select curves or surfaces to analyze; the dialog box (shown below) populates with results automatically upon selection, along with color coordinated indicators in the graphics area.
-
Zebra stripes and Color map - Zebra stripes represent the reflection of a striped room on the current model, faces, or surfaces in a Part Studio or Assembly. This allows you to see whether or not the curvature across edges and faces are aligned and continuous. Access Zebra stripes from the Show analysis tools icon (
) at the bottom right corner of the interface.Zebra stripes do not match up with G0 or positional continuity. In G1 or tangency continuity, they match up directly on the edge but diverge sharply. In G2 or curvature continuity, the zebra stripes pass smoothly through the edge (shown below left). Zebra stripes also allow you to see defects or imperfections in the surface (shown below right):
-
Curvature color map - Enables deeper investigation of curvature by applying a gradient of color of your choosing onto a face or surface in a Part Studio. Adjust the scale of the color gradient and choose from different types of color maps to gain the best visual representation to discern surface continuity and transition between edges.
The most common color map curvature option is Gaussian, which is helpful in determining if there are local imperfections or drastic changes in surface curvature. The rippling detected in the above Zebra stripes image is more apparent viewed with Gaussian curvature:
-
Dihedral analysis - Access Dihedral analysis by selecting the Show Analysis tools icon (
) at the bottom right corner of the interface. This displays the angle between the normals of 2 surfaces at a shared edge. If the angle is zero, the 2 surfaces are at least tangent at that location along the edge. In the example below, the dihedral intentionally changes from a hard crease to a smooth tangent blend at the other end of the curve:
-
Deviation analysis - Display the minimum and maximum deviation between 2 curve chains in a Sketch or Part Studio, or 2 surfaces in a Part Studio.
Example showing the Max/Min deviation between two curves
Example showing the Max/Min deviation between a "Source" surface and a surface "To measure"
See Deviation analysis for more information.
-
Reflection analysis - Renders the model in the graphics area with a reflective material and environment image of your preference.
See Reflection analysis for more information.
-
Highlight boundary edges - Highlight any open edges in red. Access Highlight boundary edges from the Camera and render options dropdown (
) below the View cube. This is useful when you are trying to identify any open areas in a surface to form a solid.
-
Face Tangent Angle - Face Tangent Angle (a Measure tool) provides quick feedback on whether a curve approaching a face is tangent at its endpoint. Select the face. The tangency angle is displayed to the left of the measure tool. This is useful to test continuity before completing a Loft or Boundary surface:
-
View in high quality - Turns on the highest available quality tessellation for the view and is essential to identify curve imperfections and evaluate continuity accurately. Access View in high quality from the Camera and render options dropdown (
) below the View cube. -
Shaded with edges/Tangent edges - Useful to view edge continuity more clearly. Access both these options from the Camera and render options dropdown (
) below the View cube.
-
Boundary surface - Some features provide little control over the curves to create a surface, over-complicating and decreasing surface quality. A Boundary surface provides complete control over the U and V direction curves. The resultant surface is only as complicated as the input curves. Loft, Sweep, and Fill features create curves in one or both directions that cannot be controlled, complicating the surface.
For example, the same surface is built with a Boundary surface and a Sweep. The sweep develops curves along the V direction along the path, creating an overly complex surface:
The same surface is built with a Boundary surface and a Loft. The Loft creates a dense control point grid in both directions:
-
Fill - Fill patches small holes in a surface. After using Fill, evaluate the resultant surface to ensure a quality surface. In the example below, Fill adds a ripple towards the bottom. Loft creates a better control point grid with no rippling, but the Boundary surface creates the smoothest, most consistent result:
-
Face Blend and Fillet - Face blend and Fillet create complex edges similar to projections or split operations. Edges created by Face blend or Fillet have a higher chance of failing and introducing imperfections due to the complexity of these features. Since this is usually cosmetic, building the surfaces to the virtual sharps and adding these features at the end is best:
-
Use Beziers instead of Splines - Splines have points defined along the curve and handles on the start and end points. Beziers have control points defined along the control polygon offset from the curve. Bezier curves increases and decreases smoothly with no continuity breaks:
-
Keep curves simple - Use the Bezier tool and start with 3 or 4 control points (including endpoints). Add the least possible amount of Spline points.
-
The degree of a Bezier is the number of control points minus 1. Beziers should generally be of the degree 3, 5, or 7. Limiting the degree of a single Bezier curve to 7 is best because the mathematical computation becomes very complex at higher degrees. Moving one control point affects the entire curve, and higher-degree curves are difficult to adjust without introducing imperfections.
-
Use a consistent flow of control points to ensure smooth curvature changes with no unintended intensity changes.
Below are a few examples of curves with poorly placed control points. The first has a zig-zag between the first and second points (outlined by the circle). The second has control points positioned above and below the curve. It is only appropriate to change which side you place control points on when you intend to add inflection to the curve. The third does not have smooth spacing between control points. The point’s spacing compared with the others is drastically different (indicated by the arrow below):
-
-
Avoid building from trimmed edges or projected curves - Since these are made from trimming operations or projections with many spans (segments knotted together) of degree-3 (cubic) splines, anything built from them is more complex and imperfect.
For example, the surface here has a denser control point grid when creating a ruled surface directly from a trimmed surface's edge (below left). Instead, overbuild both surfaces and use a Mutual trim to trim the excess at the intersection (below right):
Instead of projected curves, see if Bridging curves can build the same geometry with less complexity. Bridging curves are Bezier curves that reach up to degree-5, depending on end conditions.
-
Aim to use four-sided surfaces - Four-sided surfaces have the most consistent control point grid. Creating a surface without four sides leads to singularities (degenerates) or irregularly spaced control points (shown below left). Overbuild and trim the surface with a reference surface using the Split feature. This creates surfaces with different edge profiles, while maintaining a consistent control point grid (shown below right):
-
Use symmetry when possible - Apply constraints for continuity to ensure a smooth transition across the centerline.
-
Use reference lines in a sketch with Tangent or Curvature constraints.
-
In a 3D model, add reference surfaces to assist with the continuity of the generated surface.
-
-
Use shortcut menus and hotkeys - Use shift+c (Curve/surface analysis), shift+d (Dihedral analysis), and shift+r (View in high quality). You can also customize the Shortcut toolbar (s) under My account > Preferences > Shortcut toolbars.
這個清單是曲面特徵工具的集合,並非詳盡的清單。在建構曲面時,可能會使用其他的特徵工具。詳細資訊請參考曲面建構。
-
加厚 - 將厚度加入到曲面上。藉由給予曲面厚度然後將其轉換為實體,在現有零件或曲面上加入或移除材料,或是在路徑上使零件相交來建立新的零件或修改現有的零件。 -
封閉 - 選擇可形成實體的空間周圍的所有邊界來建立零件。使用任何互為相交或在邊界相接的曲面組與實體 (包括平面和面) 來建立一個體積。藉由加入或移除零件,或使零件相交來建立新的零件或修改現有的零件。 -
圓角 - 選擇「邊線」圓角來圓化尖銳的內部與外側邊線,並定義標準的固定半徑,建立更有造型的圓錐或變化。選擇性地套用「全周」圓角來在兩個對邊間建立一或多個面上無縫的混合。 -
面混合 - 圓滑化尖銳的連接或未連接的內部與外部面以建立面之間無縫的混合,或是將混合分離來建立新的面, 並可定義半徑或固定寬度。進一步定義混合的橫截面 (滾動球或掃出輪廓)、對稱、控制、修剪、約束與限制。 -
刪除面 - 從零件上移除一個幾何。選擇是否要修復周圍的面 (延伸面直至面相交),為空白加蓋,或將空白保留為開放。如果您沒有零件的參數式歷程記錄時 (通常在匯入的零件中有此狀況),此直接編輯的工具是相當方便的。 -
移動面 - 平移、旋轉或偏移一或多個所選的面。如果您沒有零件的參數式歷程記錄時 (通常在匯入的零件中有此狀況),此直接編輯的工具是相當方便的。 -
替換面 - 修剪一個面或將面延伸至一新的曲面。如果您沒有零件的參數式歷程記錄時 (通常在匯入的零件中有此狀況),此直接編輯的工具是相當方便的。 -
偏移曲面 - 偏移一個現有面、曲面或草圖區域來建立新的曲面。將偏移距離設定為 0 來就地產生一個副本。 -
邊界曲面 - 建立或新增由曲面邊界輪廓指定而來的曲面。 -
填補 - 定義邊界並使用邊界條件 (而不需使用參考曲面) 來細修曲面以建立一個曲面 (或從曲面建立零件)。 -
移動邊界 - 移動曲面的邊界線以延伸或修剪曲面。 -
Ruled surface - Create a ruled surface from an existing edge, sketch line, or curve. -
相互修剪 - 延伸兩個相鄰曲面的相交以完成對曲面的修剪。 -
約束曲面 - 從指定公差內的點或網格資料中選擇以建立曲面。顯示偏差並最佳化效能或平滑度。
除了曲面建構工具之外,還可使用曲線來建立曲面的基本建構塊。
這個清單是曲線特徵工具的集合,並非詳盡的清單。在操控曲線時,可能會使用其他的特徵工具。
- 草圖工具 - 草圖工具列中的工具,像是直線、轉角矩形、中心點矩形、中心點畫圓、三點畫圓、切線弧、三點定弧、樣條、點與建構線,可用來建立 Part Studio 中的草圖。
-
螺旋線 - 使用圓錐或圓柱面、單一軸或結合連接器的 z 軸、或是環狀邊線來建立螺旋線。 -
3D 擬合樣條 - 建立穿過連續頂點的 3D 擬合樣條。建立列在零件清單中「曲線」之下的曲線。 -
投影曲線 - 建立一條來自兩個草圖投影的曲線 (「兩個草圖」選項),或是建立一條來自曲線投影至面的曲線 (「曲線到面」選項)。 -
橋接曲線 - 建立連接任兩個點、頂點或結合連接器的一條曲線。所產生的曲線會列於「特徵」清單與「零件」清單中。 -
複合曲線 - 以一條曲線來代表多條邊線。選擇多條相鄰的邊線、草圖圖元、與其他的曲線。選擇非連續的邊線會建立多條的曲線。為每條曲線做出的選擇項目必須在其頂點處交會 (曲線會列於「零件」>「曲線」清單之中)。 -
相交曲線 -在兩或多個曲面或面的相交處建立一條曲線。選取的項目必須是相交的。 -
修剪曲線 -根據距離修剪或延伸曲線,或是修剪或延伸至邊界圖元。 -
等傾線 - 在斜面上建立一條等傾線。等傾線會出現在面相較於其參考定義有某些傾斜的位置。所產生的等傾線會列於「特徵」清單與「零件」清單中。 -
偏移曲線 - 藉由在周圍面上偏移邊線來建立與延伸和/或分割新的曲線。 -
等參數曲線 - 建立沿面或曲面的 U 方向或 V 方向延伸的平滑曲線。 -
編輯曲線 - 選擇草圖圖元或曲線來套用簡化的近似、提高度數、重新定位控制曲線頂點和/或平化至任何 2D 平面來編輯現有的曲線。 -
路線曲線 - 建立在 3D 空間中跨越一個或多個平面的多點曲線 (路線路徑)。這對於建立管路路線、配線、以及進階曲面建立中的 NURBS 曲線是非常有用的。
For more surfacing resources, visit our Learning center.