Hi, I am quite new to this class, I encounter a strange problem. If I set two squares from coordinates (0,0,0) (0,1,0) (1,1,0), (1,0,0) (0,0,1) (0,1,1) (1,1,1), (1,0,1) a cube comes out nicely. But if I set it to 2 (0,0,0) (0,2,0) (2,2,0), (2,0,0) (0,0,1) (0,2,1) (2,2,1), (2,0,1) It appears to be a hexangon. The code is similar to the example contoursToSurface.tcl, except that I change the "Create the data" part to just set i 0 set width 2 set numberOfOutputPoints 4 polys InsertNextCell $numberOfOutputPoints points InsertPoint $i 0 0 0 polys InsertCellPoint $i incr i points InsertPoint $i 0 $width 0 polys InsertCellPoint $i incr i points InsertPoint $i $width $width 0 polys InsertCellPoint $i incr i points InsertPoint $i $width 0 0 polys InsertCellPoint $i incr i polys InsertNextCell $numberOfOutputPoints points InsertPoint $i 0 0 1 polys InsertCellPoint $i incr i points InsertPoint $i 0 $width 1 polys InsertCellPoint $i incr i points InsertPoint $i $width $width 1 polys InsertCellPoint $i incr i points InsertPoint $i $width 0 1 polys InsertCellPoint $i incr i [Image] Hi,

I am quite new to this class, I encounter a strange problem.
If I set two squares from coordinates

(0,0,0) (0,1,0) (1,1,0), (1,0,0)
(0,0,1) (0,1,1) (1,1,1), (1,0,1)

a cube comes out nicely.

But if I set it to 2

(0,0,0) (0,2,0) (2,2,0), (2,0,0)
(0,0,1) (0,2,1) (2,2,1), (2,0,1)

It appears to be a hexangon.

The code is similar to the example contoursToSurface.tcl, except that I change
the "Create the data" part to just

set i 0
set width 2
set numberOfOutputPoints 4
polys InsertNextCell $numberOfOutputPoints
points InsertPoint $i 0 0 0
polys InsertCellPoint $i
  incr i
points InsertPoint $i 0 $width 0
polys InsertCellPoint $i
  incr i
points InsertPoint $i $width $width 0
polys InsertCellPoint $i
  incr i
points InsertPoint $i $width 0 0
polys InsertCellPoint $i
  incr i

polys InsertNextCell $numberOfOutputPoints
points InsertPoint $i 0 0 1
polys InsertCellPoint $i
  incr i
points InsertPoint $i 0 $width 1
polys InsertCellPoint $i
  incr i
points InsertPoint $i $width $width 1
polys InsertCellPoint $i
  incr i
points InsertPoint $i $width 0 1
polys InsertCellPoint $i
  incr i
 


 
  Embedded Content: CWINDOWSTEMPnsmail22.jpg: 00000001,0b2d1107,00000000,00000000