Examples of editing the NURBS curves

Примеры редактирования NURBS кривых

 

 

For training with this document you may use the NURBS models prepared in examples of document-notebook "Refining NURBS by editing on Hermite GD.nb"

Для обучения работе с данным документом Вы можете использовать NURBS модели, подготовленные в примерах документа-ноутбука  "Refining NURBS by editing on Hermite GD.nb"

 

 

On the page "Page for setting params and options" in the form of comments are two lists:

List of input files of NURBS-sketches:

На странице “Page for setting params and options” в виде комментариев даны два списка:

Список входных файлов NURBS кривых:

(*INFILE=" Fair_NURBS \\1_FCircle1Degree.dxf";*)

(* 1  Example of Creation Curve on Сlosed  Polyline from circle *)

(*INFILE=" Fair_NURBS \\2_FTngOnCircle.dxf";*)

(* 2  Example of Creation Curve on Closed Tangent Polyline from Circle*)

(*INFILE=" Fair_NURBS \\3_FBSpline1degree.dxf";*)

(* 3  Example of Creation Curve on s-formed Polyline *)

(*INFILE=" Fair_NURBS \\4_FBSpline2degree.dxf";*)

(* 4  Example of Creation on Unclosed s-form Tangent Polyline*)

(*INFILE=" Fair_NURBS \\5_FBSpline_Degree3.dxf";*)

(* 5 Example of Improving of Closed BSpline 3 degree created on edited

points *)

(*INFILE=" Fair_NURBS \\6_FBSpline_Degree10.dxf";*)(* 6 Example of

Improving of BSpline 10 degree created by control vertices *)

INFILE = " Fair_NURBS \\7_FHelix.dxf";

(* 7  Example of Improving the spatial primitive Helix from AutoCAD*)

(*INFILE=" Fair_NURBS \\8_FUnclosed_7Degree_Alias.dxf";*)

(* 8 Example of Improving of UnClosed BSpline 7 degree created on

edited points in Alias Design *)

 

List of output files for refined curves:

Список выходных файлов для отредактированных кривых:

(*OUTFILE="Fair_NURBS\\1_FFCircle1Degree.dxf"; *)(* 1 *)

(*OUTFILE="Fair_NURBS\\2_FFTngOnCircle.dxf";*) (* 2 *)

(*OUTFILE="Fair_NURBS\\3_FFBSpline1degree.dxf";*) (* 3 *)

(*OUTFILE="Fair_NURBS\\4_FFBSpline2degree.dxf";*)  (* 4 *)

(*OUTFILE="Fair_NURBS\\5_FFBSpline_Degree3.dxf";*) (* 5 *)

(*OUTFILE="Fair_NURBS\\6_FFBSpline_Degree10.dxf";*) (* 6 *)

(*OUTFILE="Fair_NURBS\\7_FFHelix.dxf";*)(* 7 *)

(*OUTFILE="Fair_NURBS\\8_FFUnclosed_7Degree_Alias.dxf"; *) (* 8 *)

 

For example, you need to work out some example n. For this example, in the strings with the number n determining the variables INFILE and OUTFILE you must remove comment symbols "(*" and "*)". The remaining strings should be in the comments.

By default, it is an active example of the number 8.

Например, вам нужно отработать некоторый пример n. Для данного примера в строках с номером n определения переменных INFILE и OUTFILE необходимо удалить значки комментария ” (*” и ” *)”. Остальные строки должны быть в комментариях.

По умолчанию, это активный пример с номером 8 .

 

Working example reads DXF-file with NURBS-sketch from folder “Fair_NURBS” and write edited NURBS curve to the output DXF-file in folder “Fair_NURBS”.

Работающий пример считывает DXF-файл с NURBS-эскизом из папки Fair_NURBS и записывает отредактированную NURBS кривую в выходной DXF-файл Fair_NURBS.

 

 

Example of editing of a closed NURBS curve

Пример редактирования замкнутой NURBS кривой

 

Open the document-notebook Mathematica “Analysis of the quality and editing the s-polygon and base polyline of NURBS curve.nb”.

On page for setting params set

INFILE = "Fair_NURBS\\FCircle1Degree.dxf";

OUTFILE = "Fair_NURBS\\FFCircle1Degree.dxf";

 

On section Dynamic Editing click Subdivide

 

For edit the closed NURBS curve in float format Click Float [on]

Edit the curve on site of closure.

Then сheck Graphics and macroparams of edited curve.

 

 

Example of editing an open curve

Пример редактирования незамкнутой кривой

 

Open the document-notebook Mathematica “Analysis of the quality and editing the s-polygon and base polyline of NURBS curve.nb”.

On page for setting params set

 

INFILE = "Fair_NURBS\\ FUnclosed_7Degree_Alias.dxf ";

OUTFILE = "Fair_NURBS\\ FFUnclosed_7Degree_Alias.dxf ";

 

 

Go to the section Dynamic Editing

 

For local editing click [Subdivide]

 

For quality editing the end site of curve transform s-polygon to float format (click Float).

 

 

 

Edit the end site of s-polygon to achieve required curvature in end point

Make the end nodal point as current control point (click Point …[>>])

To eliminate mismatch between the actual position of the nodal point of the spline and the nodal point of the Hermite GD click [Point to Init]

To return to clamped format click Float[off].

Then analyze the graphics and macroparams of edited curve.