3D Triangle Patch by Specified Data Index

Sample OPJ to download to try: 3D Triangle Patch by Specified Data Index.opj

 (ORG-8141)

The technique supported in 9.1 allows user to create surface which is made of one or many triangles. It is useful for drawing 3-D polygons of arbitrary shape

In previous version, Origin automatically determines how to connect the vertices. Origin 9.1 introduce 3D Triangle Patch by Specified Data Index, which allows you to specify the order of vertice connection by the index data column

To make such patch. we should prepare a worksheet with data form, X Y Z Index.

Note: For the Index column, the size should be XYZ data size multiple of 3. Every 3 numbers will indicate three points of XYZ data, which will represent a triangle patch. The Index should be based on the selected data, but not the whole columns.

How to

  1. Select columns with XYZ data, generate a surface plot by choosing Plot: 3D Surface: Color Fill Surface
  2. Specify the data index for plotting order by running the script (With your worksheet active, open the Script Window (menu item: Window: Script Window), copy-paste the following lines of code, select all lines, and press Enter.)
    set %c -spi 2 
    //2=the column next to the z column. 1=z column, 0=no data index specified