Category Archives: BSplineSurface

#DesignScript Geometry.Surface.BSplineSurface.NormalAtPoint#7- Code to Node to Code

 

Hi Everyone:

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

Geometry.Surface.BSplineSurface.NormalAtPoint-ds#7

Geometry.Surface.BSplineSurface.NormalAtPoint-ds#7

Open the file Geometry.Surface.BSplineSurface.NormalAtPoint.ds in the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint.ds#7

Geometry.Surface.BSplineSurface.NormalAtPoint.ds#7

Now open DS Studio, copy the DSE script, Geometry.Surface.BSplineSurface.NormalAtPoint.ds and then paste it into a blank canvas.

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

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

Geometry.Surface.BSplineSurface.NormalAtPoint#a7-edited

Geometry.Surface.BSplineSurface.NormalAtPoint#a7-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.

As one breaks down the code block in the canvas, it’s noticed that a custom node is required, as the script begins to draw an error. Create and use a Node to solve this problem

Custom Node-PtTransporter

Custom Node-PtTransporter

This script shown above should be written and run in the DS Editor and saved, then inserted into the DS Studio Library.  In this case, its again, the  PtTransporter node.

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Continuing, the preliminary translation is shown above, while the developed translation is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

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.

Geometry.Surface.BSplineSurface.NormalAtPoint.ds,#7-PtTransporter

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

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

The “Node to Code” operation as shown above. The  geometry that results from the various code translations is shown below.

Geometry.Surface.BSplineSurface.NormalAtPoint#7-Windows Graphic

Geometry.Surface.BSplineSurface.NormalAtPoint#7-Windows Graphic

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.

PtTransporter

Geometry.Surface.BSplineSurface.NormalAtPoint#a7

Geometry.Surface.BSplineSurface.NormalAtPoint#7

Geometry.Surface.BSplineSurface.NormalAtPoint#7a

Geometry.Surface.BSplineSurface.NormalAtPoint#7b

Thanks for looking.

T!M

Advertisements

#DesignScript – Geometry.Surface.BSplineSurface.NormalAtParameter #6- Code to Node to Code

Hi Everyone:

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

Geometry.Surface.BSplineSurface.NormalAtParameter-ds#6

Geometry.Surface.BSplineSurface.NormalAtParameter-ds#6

Open the file Geometry.Surface.BSplineSurface.NormalAtParameter.ds in the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.NormalAtParameter.ds#6

Geometry.Surface.BSplineSurface.NormalAtParameter.ds#6

Now open DS Studio, copy  the DSE script, Geometry.Surface.BSplineSurface.NormalAtParameter.ds and then paste it into a blank canvas.

Geometry.Surface.BSplineSurface.NormalAtParameter#a6

Geometry.Surface.BSplineSurface.NormalAtParameter#a6

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

Geometry.Surface.BSplineSurface.NormalAtParameter#a6-edited

Geometry.Surface.BSplineSurface.NormalAtParameter#a6-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.

As one breaks down the code block in the canvas, it’s noticed that a custom node is required, as the script begins to draw an error. Once a PtTransporter Node that we used on previous BSpineSurface translations.

Custom Node-PtTransporter

Custom Node-PtTransporter

 

This script shown above should be written and run in the DS Editor and saved. In this case as a PtTransporter.

Geometry.Surface.BSplineSurface.NormalAtParameter#6

Geometry.Surface.BSplineSurface.NormalAtParameter#6

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

Geometry.Surface.BSplineSurface.NormalAtParameter#6a

Geometry.Surface.BSplineSurface.NormalAtParameter#6a

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.

Geometry.Surface.BSplineSurface.ByControlVertices#2-PtTransporter

Geometry.Surface.BSplineSurface.ByControlVertices#2-PtTransporter

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

Geometry.Surface.BSplineSurface.NormalAtParameter#6b

Geometry.Surface.BSplineSurface.NormalAtParameter#6b

The “Node to Code” operation as shown above. The  geometry that results from the various code translations is shown below.

Geometry.Surface.BSplineSurface.NormalAtParameter#6-Feature Window2

Geometry.Surface.BSplineSurface.NormalAtParameter#6-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.

PtTransporter

Geometry.Surface.BSplineSurface.NormalAtParameter#a6

Geometry.Surface.BSplineSurface.NormalAtParameter#6

Geometry.Surface.BSplineSurface.NormalAtParameter#6a

Geometry.Surface.BSplineSurface.NormalAtParameter#6b

Thanks for looking.

T!M

#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

#DesignScriptGeometry.Surface.BSplineSurface.ByPoints #3- Code to Node to Code

Hi Everyone:

The third DSE Sample to be translated and is entitled, Geometry.Surface.BSplineSurface.ByPoints.ds.

Geometry.Surface.BSplineSurface.ByPoints-ds#3

Geometry.Surface.BSplineSurface.ByPoints-ds#3

Open the file, Geometry.Surface.BSplineSurface.ByPoints.ds, in the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.ByPoints.ds#3

Now open DS Studio, and paste the DSE script resulting into a blank canvas.

Geometry.Surface.BSplineSurface.ByPoints#a3

Geometry.Surface.BSplineSurface.ByPoints#a3

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

Geometry.Surface.BSplineSurface.ByPoints#a3-edited

Geometry.Surface.BSplineSurface.ByPoints#a3-edited

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

Geometry.Surface.BSplineSurface.ByPoints#3

Geometry.Surface.BSplineSurface.ByPoints#3

The preliminary translation is shown above. Again the WCS Coordinate identity node is standing alone and not tied into any other nodes. Use the PointByCartesianCoordinates from the Studio library.

Geometry.Surface.BSplineSurface.ByPoints#3PtTransporter003

Geometry.Surface.BSplineSurface.ByPoints#3PtTransporter003

Again, there are currently limitations in DSS for developing the surface,  a custom node is required, for the BSplineSurface array generation. Add the custom PtTransporterFor003.ds node to the DSS canvas from the  (+) Library. As we continue the translation, the developed translation is shown below.

 

Geometry.Surface.BSplineSurface.ByPoints#3a

Geometry.Surface.BSplineSurface.ByPoints#3a

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.

Geometry.Surface.BSplineSurface.ByPoints#3b

Geometry.Surface.BSplineSurface.ByPoints#3b

The “Node to Code” operation as shown above. One must remember that the PtTransporter003.ds file must be present in the Library for this translation to work.

Geometry.Surface.BSplineSurface.ByPoints#3-Graphic Window

Geometry.Surface.BSplineSurface.ByPoints#3-Graphic Window

The geometry that results from the various code translations is shown above. Liberty was taken with making various colors and having some transparency with the geometry 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

2014_08_24-Geometry.Surface.BSplineSurface.ByPoints#a3

2014_08_24-Geometry.Surface.BSplineSurface.ByPoints#3

2014_08_24-Geometry.Surface.BSplineSurface.ByPoints#3a

2014_08_24-Geometry.Surface.BSplineSurface.ByPoints#3b

Thanks for looking.

T!M

#DesignScript Geometry.Surface.BSplineSurface.ByControlVertices.PointAtParameter #2- Code to Node to Code

 

 

Hi Everyone:

The next Surface file, Geometry.Surface.BSplineSurface.ByControlVertices.ds,  is the second in a series of seven BSplineSurface file types in the DesignScript Editor (DSE) Samples.

Geometry.Surface.BSplineSurface.ByControlVertices-ds#2

Geometry.Surface.BSplineSurface.ByControlVertices-ds#2

Open the file Geometry.Surface.BSplineSurface.ByControlVertices.dsin the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.ByControlVertices.ds#2

Geometry.Surface.BSplineSurface.ByControlVertices.ds#2

Now open DS Studio, and paste the DSE script resulting into a blank canvas.

Geometry.Surface.BSplineSurface.ByControlVertices#a2

Geometry.Surface.BSplineSurface.ByControlVertices#a2

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

Geometry.Surface.BSplineSurface.ByControlVertices#a2-edited

Geometry.Surface.BSplineSurface.ByControlVertices#a2-edited

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

Geometry.Surface.BSplineSurface.ByControlVertices#2

Geometry.Surface.BSplineSurface.ByControlVertices#2

The preliminary translation is shown above. Again the WCS Coordinate identity node is standing alone and not tied into any other nodes. Use the PointByCartesianCoordinates from the Studio library.

Geometry.Surface.BSplineSurface.ByControlVertices#2-PtTransporter

Geometry.Surface.BSplineSurface.ByControlVertices#2-PtTransporter

 

Geometry.Surface.BSplineSurface.ByControlVertices

PtTransporter.ds node

Again, there are currently limitations in DSS for developing the surface,  a custom node is required, for the BSplineSurface array generation. Add the custom PtTransporter node to the DSS canvas from the  (+) Library.

As we continue the translation, the developed translation is shown below.

Geometry.Surface.BSplineSurface.ByControlVertices#2a

Geometry.Surface.BSplineSurface.ByControlVertices#2a

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.

Geometry.Surface.BSplineSurface.ByControlVertices#2b

Geometry.Surface.BSplineSurface.ByControlVertices#2b

The “Node to Code” operation as shown above. One must remember that the PtTransporter.ds file must be present in the Library for this translation to work.

Geometry.Surface.BSplineSurface.ByControlVertices#2-Graphic Window

Geometry.Surface.BSplineSurface.ByControlVertices#2-Graphic Window

The geometry that results from the various code translations is shown above. Liberty was taken with making various colors and having some transparency with the geometry 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.

PtTransporter

Geometry.Surface.BSplineSurface.ByControlVertices#a2

Geometry.Surface.BSplineSurface.ByControlVertices#2

Geometry.Surface.BSplineSurface.ByControlVertices#2a

Geometry.Surface.BSplineSurface.ByControlVertices#2b

Thanks for looking.

T!M

#DesignScript Geometry.Surface.BSplineSurface.PointAtParameter #1- Code to Node to Code

Hi Everyone:

We are now looking at the Surface file types in the DesignScript Editor (DSE) Samples. The first file, highlighted below, Geometry.Surface.BSplineSurface.PointAtParameter.ds, is one in a series of seven BSplineSurface file types that are to be translated into DesignScript Studio form (DSS).

Geometry.Surface.BSplineSurface.PointAtParameter-ds#1

Geometry.Surface.BSplineSurface.PointAtParameter-ds#1

Open the file Geometry.Surface.BSplineSurface.PointAtParameter.ds in the DS Editor and run it. The script is shown below.

Geometry.Surface.BSplineSurface.PointAtParameter.ds#1

Geometry.Surface.BSplineSurface.PointAtParameter.ds#1

Now open DS Studio, and paste the DSE script resulting into a blank canvas.

Geometry.Surface.BSplineSurface.PointAtParameter#a1

Geometry.Surface.BSplineSurface.PointAtParameter#a1

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

Geometry.Surface.BSplineSurface.PointAtParameter#a1-edited

Geometry.Surface.BSplineSurface.PointAtParameter#a1-edited

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

Geometry.Surface.BSplineSurface.PointAtParameter#1

Geometry.Surface.BSplineSurface.PointAtParameter#1

The preliminary translation is shown above. Note that the WCS Coordinate identity node is standing alone and not tied into any other nodes. Suggesting a remedy to this, instead of using the PointByCoordinates node, one may use the PointByCartesianCoordinates from the Studio library.

Geometry.Surface.BSplineSurface.PointAtParameter#1a partial graphic

Geometry.Surface.BSplineSurface.PointAtParameter#1a partial graphic

Due to some current limitations in developing the surface, one needs to create a custom node, as DSS does not translate the array correctly for the BSplineSurface.

Geometry.Surface.BSplineSurface.PointAtParameter#1a-transporter_ds

Geometry.Surface.BSplineSurface.PointAtParameter#1a-transporter_ds

As we continue the translation, the developed translation is shown below.

Geometry.Surface.BSplineSurface.PointAtParameter#1a-left

Geometry.Surface.BSplineSurface.PointAtParameter#1a-left

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.

Geometry.Surface.BSplineSurface.PointAtParameter#1b

Geometry.Surface.BSplineSurface.PointAtParameter#1b

The “Node to Code” operation as shown above. The geometry that results from the various code translations is shown below.

Geometry.Surface.BSplineSurface.PointAtParameter#1-Windows Graphic

Geometry.Surface.BSplineSurface.PointAtParameter#1-Windows Graphic

Liberty was taken with making various colors and having some transparency with the geometry 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.

Geometry.Surface.BSplineSurface.PointAtParameter#a1

Geometry.Surface.BSplineSurface.PointAtParameter#1

Geometry.Surface.BSplineSurface.PointAtParameter#1a

Geometry.Surface.BSplineSurface.PointAtParameter#1b

Thanks for looking.

T!M