------------------------------------------------------------------------------
| 83 | |
| 84 | //------------------------------------------------------------------------------ |
| 85 | void vtkPath::InsertNextPoint(float pts[3], int code) |
| 86 | { |
| 87 | this->Points->InsertNextPoint(pts); |
| 88 | |
| 89 | vtkIntArray* codes = vtkArrayDownCast<vtkIntArray>(this->PointData->GetScalars()); |
| 90 | assert("control point code array is int type" && codes); |
| 91 | codes->InsertNextValue(code); |
| 92 | } |
| 93 | |
| 94 | //------------------------------------------------------------------------------ |
| 95 | void vtkPath::InsertNextPoint(double pts[3], int code) |