DesignScript Curve Translation,Geometry.Curve.Offset#4 – Code to Node to Code

Hi Everyone:

This the forth DesignScript file in a series of forty-nine curve translations. The file, Geometry.Curve.Offset.ds is from the DesignScript Editor (DSE) Sample files.

Geometry.Curve.Offset.ds#4

Geometry.Curve.Offset.ds#4

This file has an error which required a work around. Unsatisfactory as that may be, one is still able to imagine it’s purpose and performance. Rather more serious than the misspelling of “Geoemtry , hopefully this will be fixed on the next DesignScript update.

Geometry.Curve.Offset.ds#4-error

Geometry.Curve.Offset.ds#4-error

The offset node was extracted from the lines onboard context menu. In order to complete this exercise the offset node for points was used.

Geometry.Curve.Offset.ds#4-point alt

Geometry.Curve.Offset.ds#4-point alt

Not the most elegant solution but one gets the idea.

Offset.ds#4-point alt_1

Offset.ds#4-point alt_1

The properties of the offset node were taken from the line node. One has to imagine them originating from the Offset node.

Geometry.Curve.Offset#4a

Geometry.Curve.Offset#4a

After completing the translation from code,  the nodes then are again transformed back into code, but first the  editing of the Variable 68 was performed as shown below.

Geometry.Curve.Offset#4b-edit

Geometry.Curve.Offset#4b-edit

The full translation then is shown below.

Geometry.Curve.Offset#4b-error_edit

Geometry.Curve.Offset#4b-error_edit

The highlighted curve operation failure is noted, with  the successful edit as well.

The results of this translation are shown in the Graphic below.

Geometry.Curve.Offset#4-Windows Graphic

Geometry.Curve.Offset#4-Windows Graphic

The files are available to download from the links below.

Geometry.Curve.Offset#4

Geometry.Curve.Offset#4a

Geometry.Curve.Offset#4b

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 )

Connecting to %s