Lines Matching defs:node
80 row = r*3; // Convert from patch array to node array
95 SPMeshNode* node = new SPMeshNode;
97 node->node_type = MG_NODE_TYPE_HANDLE;
98 if( (i == 0 || i == 3) && (j == 0 || j == 3 ) ) node->node_type = MG_NODE_TYPE_CORNER;
99 if( (i == 1 || i == 2) && (j == 1 || j == 2 ) ) node->node_type = MG_NODE_TYPE_TENSOR;
100 (*nodes)[row+i].push_back( node );
432 // Set node points 1/3 of the way between corners.
466 // std::cout << "Update node: " << i << ", " << j << " " << coonsTensorPoint( t ) << std::endl;
819 // Set node edge.
1315 // Get node array size
1327 SPMeshNode* node = new SPMeshNode;
1328 node->p = p0 + Geom::Point( j * dx, i * dy );
1330 node->node_edge = MG_NODE_EDGE_NONE;
1331 if( i == 0 ) node->node_edge |= MG_NODE_EDGE_TOP;
1332 if( i == nrows -1 ) node->node_edge |= MG_NODE_EDGE_BOTTOM;
1333 if( j == 0 ) node->node_edge |= MG_NODE_EDGE_LEFT;
1334 if( j == ncols -1 ) node->node_edge |= MG_NODE_EDGE_RIGHT;
1340 node->node_type = MG_NODE_TYPE_CORNER;
1341 node->set = true;
1342 node->color = color;
1343 node->opacity = 1.0;
1347 node->node_type = MG_NODE_TYPE_HANDLE;
1348 node->set = true;
1349 node->path_type = 'c';
1356 node->node_type = MG_NODE_TYPE_HANDLE;
1357 node->set = true;
1358 node->path_type = 'c';
1361 node->node_type = MG_NODE_TYPE_TENSOR;
1362 node->set = false;
1367 row.push_back( node );
1407 std::cout << "New node row:" << std::endl;
1419 std::cout << "Error: missing mesh node." << std::endl;
1758 // Every third node is a corner node
1793 // the node array is rectangular).
1923 * parallel to the other node's handle direction. This is the section of an ellipse that
2023 // Upper left node of patch
2080 // Number of node rows and columns
2339 Moves handles in response to a corner node move.
2340 p_old: orignal position of moved corner node.
2341 corner: the corner node moved (draggable index, i.e. point_i).
2365 // Find node row/column
2673 guint i = 3 * row; // Convert from patch row to node row
2786 guint j = 3 * col; // Convert from patch column to node column