#DesignScript – Geometry.Surface.BSplineSurface.IsoCurve #5- Code to Node to Code

Hi Everyone:

This is a DS file translation entitled Geometry.Surface.BSplineSurface.IsoCurve.ds, from the DesignScript Editor (DSE) Samples. It is the fifth in a series of seven BSpline Surface type of files.

Geometry.Surface.BSplineSurface.IsoCurve-ds#5

Geometry.Surface.BSplineSurface.IsoCurve-ds#5

Open the file Geometry.Surface.BSplineSurface.IsoCurve.ds, in the DS Editor and run it. The script is shown below. Note the highlighted none functioning portions of the script which are drawing errors.

Geometry.Surface.BSplineSurface.IsoCurve.ds#5

Geometry.Surface.BSplineSurface.IsoCurve.ds#5

We will endeavor to provide a workaround in order to generate the properties for the BSplineCurve. Now open DS Studio, copy & paste the DSE script, Geometry.Surface.BSplineSurface.IsoCurve.ds, into a blank canvas.

Geometry.Surface.IsoCurve#a5

Geometry.Surface.IsoCurve#a5

Note the highlighted commenting out which must be deleted in order to activate the code.

Geometry.Surface.IsoCurve#a5-edited

Geometry.Surface.IsoCurve#a5-edited

Now comment out the “(import(ProGeometry.dll)” script as highlighted above.  It can now be run as a Code Block of script, before the translation to Nodes takes place.

Geometry.Surface.IsoCurve#5

Geometry.Surface.IsoCurve#5

The preliminary translation is shown above, while the developed translation is shown below. Note the workaround for developing the properties.

Geometry.Surface.IsoCurve#5a

Geometry.Surface.IsoCurve#5a

The red and yellow highlighted areas match the description and properties layout that is given to the script in the initial DS Editor *.ds file.

Again one should make sure that the custom node PtTransporterFor003 has been loaded into the library and file.

Geometry.Surface.BSplineSurface.ByPoints#3PtTransporter003

Geometry.Surface.BSplineSurface.ByPoints#3PtTransporter003

Geometry.Surface.IsoCurve#5b

Geometry.Surface.IsoCurve#5b

The “Node to Code” operation as shown above. A little editing is desired as highlighted above.

The  geometry that results from the various code translations is shown below.

Geometry.Surface.IsoCurve#5-graphic Window

Geometry.Surface.IsoCurve#5-graphic Window

Liberty was taken with making the color have some transparency as shown above in the graphic window.

DSS was run as a stand-alone application and the translation files are available to download from the DropBox links below.

PtTransporterFor003

Geometry.Surface.IsoCurve#a5

Geometry.Surface.IsoCurve#5

Geometry.Surface.IsoCurve#5a

Geometry.Surface.IsoCurve#5b

Thanks for looking.

T!M

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s