Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
c9a44aae
Commit
c9a44aae
authored
Aug 10, 2004
by
Ken Martin
Browse files
fix warning
parent
c41d9292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/Testing/Tcl/otherDataSetAttributes.tcl
View file @
c9a44aae
...
...
@@ -33,11 +33,29 @@ foreach array "Bit Char Double Float Int Long Short UnsignedChar UnsignedInt Uns
a$
{
array
}
Array Delete
}
foreach attribute
"Scalars Vectors Normals
Tensors
TCoords"
{
foreach attribute
"Scalars Vectors Normals TCoords"
{
dsa SetActive$
{
attribute
}
aFloatArray
dsa Get$
{
attribute
}
aFloatArray
dsa Get$
{
attribute
}
foo
}
vtkFloatArray aFloatTensors
aFloatTensors Allocate 1 1
aFloatTensors SetNumberOfComponents 9
aFloatTensors SetNumberOfTuples 4
aFloatTensors SetName aFloatTensors
for
{
set i 0
}
{
$i
<
[
aFloatTensors GetNumberOfTuples
]}
{
incr i
}
{
for
{
set j 0
}
{
$j
<
[
aFloatTensors GetNumberOfComponents
]}
{
incr j
}
{
aFloatTensors SetComponent $i $j 1
incr k
}
}
dsa AddArray aFloatTensors
aFloatTensors Delete
dsa SetActiveTensors aFloatTensors
dsa GetTensors aFloatTensors
dsa GetTensors foo
dsa RemoveArray aFloatArray
vtkDataSetAttributes dsa2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment