Tag Archives: Spherical Coordinates

DesignScript Curve Translation, Curve.Line.IsColinear#3- Code to Node to Code

Hi Everyone:

This is the third Line file, Geometry.Curve.Line.IsColinear.dsin a series of four curve- line translations from the DesignScript Editor Sample files.

Geometry.Curve.Line.IsColinear.ds

Geometry.Curve.Line.IsColinear.ds

The highlighted file, Geometry.Curve.Line.IsColinear.ds is shown in the DSE (DesignScript Editor). Copy the resulting script to the clipboard and then open DSS (DesignScript Studio). Paste the script from the clipboard into the blank canvas. Develop the translation and it will look something like below.

Geometry.Curve.Line.IsColinear#3

Geometry.Curve.Line.IsColinear#3

Note the how the properties are developed in a sequence.

Geometry.Curve.Line.IsColinear#3a

Geometry.Curve.Line.IsColinear#3a

The “Node to Code” translation can now take place.

Geometry.Curve.Line.IsColinear#3b

Geometry.Curve.Line.IsColinear#3b

The graphic generated from the files is shown below.

Geometry.Curve.Line.IsColinear- Windows Graphic

Geometry.Curve.Line.IsColinear- Windows Graphic

The files can be downloaded from the links below.

Geometry.Curve.Line.IsColinear#3

Geometry.Curve.Line.IsColinear#3a

Geometry.Curve.Line.IsColinear#3b

Thanks for looking.

T!M

DesignScript Curve Translation, Line.StartPointEndPoint#2- Code to Node to Code

Hi Everyone:

This is the second Line file, Curve.Line.ByStartPointEndPoint, in a series of four curve- line translations from the DesignScript Editor Sample files.

Geometry.Curve.Line.StartPointEndPoint.ds

Geometry.Curve.Line.ByStartPointEndPoint.ds

Pick the highlighted file in he editor (DSE), open it and copy the script, then open (DesignScript Studio) DSS and paste the script into a new canvas. Develop the translation.

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.ByStartPointEndPoint#2

Note the sequence of properties that the line node commands as illustrated and shown below.

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.ByStartPointEndPoint#2a

Execute the “Node to Code” and translate the graph canvas to the script as shown below.

Geometry.Curve.Line.StartPointEndPoint#2b

Geometry.Curve.Line.ByStartPointEndPoint#2b

A small portion of the highlighted script is edited as shown.

Geometry.Curve.Line.StartPointEndPoint#2b

Geometry.Curve.Line.BYStartPointEndPoint#2b

This makes for a more compact code. The resulting Graphic from  Curve.Line.ByStartPointEndPoint is shown below.

Curve.Line.ByStartPointEndPoint

Curve.Line.ByStartPointEndPoint

The files are available for download from the links below.

Geometry.Curve.Line.StartPointEndPoint#2

Geometry.Curve.Line.StartPointEndPoint#2a

Geometry.Curve.Line.StartPointEndPoint#2b

Thanks for looking.

T!M

DesignScript Coordinate Translation #11, Code to Node

Hi Everyone:

Here is the eleventh file from the DSE’s  samples to be translated into DSS’s graph node form.

CoordinateSystem.BySphericalCoordinates.ds

CoordinateSystem.BySphericalCoordinates.ds

After copying and loading the text from the (DSE) Editor and pasting it into the canvas one can quickly translate the essentials from the code by using the Library for node selections.

CoordinateSystem.BySphericalCoordinates

CoordinateSystem.BySphericalCoordinates

Now one can continue and generate the other properties of the Coordinate System by Spherical Coordinates and also give identity to the variable values should one choose to do so.

CoordinateSystem.BySphericalCoordinates#11

CoordinateSystem.BySphericalCoordinates#11

After completing the translation, following the various properties descriptions from the *.ds file, it can be translated back to code by selecting the graph nodes with a bounding box window and clicking on the “Node to Code”.

CoordinateSystem.BySphericalCoordinates#11

CoordinateSystem.BySphericalCoordinates#11

And here is the resulting Graph that is the same for each of these files.

CoordinateSystem.BySphericalCoordinates

CoordinateSystem.BySphericalCoordinates

Find the files below to upload them.

CoordinateSystem.BySphericalCoordinates#11

CoordinateSystem.BySphericalCoordinates#11a

CoordinateSystem.BySphericalCoordinate#11b

Thanks for looking

T!M