English.
Hi all!
I created .ghx for Parametric Design of Bottle. I defined profile curves giving control points with slider, definition of hight, shifting, and offset based on referenced…
i < L.Count;i++){ bool include = true; for (int j = 0;j < output.Count;j++){ if( output[j].PointAt(0) == L[i].PointAt(0) && output[j].PointAt(1) == L[i].PointAt(1) || output[j].PointAt(0) == L[i].PointAt(1) && output[j].PointAt(1) == L[i].PointAt(0) ){ include = false; } } if(include){ output.Add(L[i]); } } A = output; }
If you'd prefer to test within a tolerance rather than test for exact equality, you can replace the lines that look like
output[j].PointAt(0) == L[i].PointAt(0)
with
output[j].PointAt(0).DistanceTo(L[i].PointAt(0)) < t
I've attached a version of this script that I tend to use - it also outputs the indices of the items from the original list that remain.
…
created surface with sweep and rotate them with number of division. Section curves of 2Railsweep is defined with 3 Point arc and shape is also controlable.
You can change shape by sliding 16 paramteters.
The definition is rather long, hope somebody can modify with more sphiscated manner.
日本語
パラメトリックにボトルデザインをする.ghxファイルを作成しました。ボトルのプロファイルカーブを、参照となる円に対して、高さ、シフト、オフセットでコントロールポイントの位置情報を与えて定義。次にスイープで分割数だけ回転コピーして作成。
スイープの断面、3点円弧で作成し、形状コントロールするようにしています。
ボトル形状は、16のパラメーターをスライドすることで定義出来ます。
…