Vtkcelllinks-understanding the relationship between points, units, and datasets

Source: Internet
Author: User
Tags idn

Vtkcelllinks indicates a list of links. Each Link contains a list of cell IDs,

Units in the list use the same vertex at the same time.

// BTX
Class link {
Public:
Unsigned short ncells; // number of units in the list
Vtkidtype * cells; // pointer to the cell id
};

Vtkcelllinks: buildlinks (vtkdataset * Data)

This function is used to create the list from point to cells.

 

The relationship from cell to points is completed by vtkcell, which includes information about the points used by the Unit.

// Left public for quick computational access
Vtkpoints * points; // coordinate information of the points that constitute the Unit
Vtkidlist * pointids; // corresponding to the points ID

 

Units of the same type can form vtkcellarray objects.

Structure: (n, id1, Id2,..., IDN, N, id1, Id2,..., IDN ,...)

N indicates the number of points contained in a unit, and ID _ indicates the ID of the points associated with the unit.

 

Multiple vtkcellarrays of different types can be added to vtkcelltypes to form complex datasets.

For example, vtkpolydata includes the main member variables:

Vtkcellarray * Verts; // vertex unit set
Vtkcellarray * lines; // line unit set
Vtkcellarray * polys; // polygon unit set
Vtkcellarray * strips; // triangle band unit set

// Supporting structures for more complex Topological Operations
// Built only when necessary
Vtkcelltypes * cells; // associate the above units. It is the prerequisite for obtaining the reference relationship between cells and points.
Vtkcelllinks * links; // prerequisite for obtaining the reference relationship from point to cells

If you want to process the reference relationship between a vertex and a cell, initialize the variables cells and links, that is, call

Buildlinks and buildcells are called respectively. In contrast, the associated functions are deletelinks and deletecells.

 

Vtkcelllinks-understanding the relationship between points, units, and datasets

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.