Tag Archives: Surface.BSplineSurface

#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