亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? meshkcomplex.cxx

?? InsightToolkit-1.4.0(有大量的優(yōu)化算法程序)
?? CXX
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
    {
    std::cout << pointIterator.Value() << std::endl;
    ++pointIterator;
    }
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  The cells can be visited using CellsContainer iterators 
  //
  // \index{itk::Mesh!CellsContainer}
  // \index{itk::Mesh!CellsIterators}
  // \index{itk::Mesh!GetCells()}
  // \index{CellsContainer!Begin()}
  // \index{CellsContainer!End()}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  typedef MeshType::CellsContainer::ConstIterator  CellIterator;

  CellIterator cellIterator = mesh->GetCells()->Begin();
  CellIterator cellEnd      = mesh->GetCells()->End();
  
  while( cellIterator != cellEnd ) 
    {
    CellType * cell = cellIterator.Value();
    std::cout << cell->GetNumberOfPoints() << std::endl;
    ++cellIterator;
    }
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  Note that cells are stored as pointer to a generic cell type that is the
  //  base class of all the specific cell classes. This means that at this
  //  level we can only have access to the virtual methods defined in the
  //  \code{CellType}. 
  //
  //  The point identifiers to which the cells have been associated can be
  //  visited using iterators defined in the \code{CellType} trait. The
  //  following code illustrates the use of the PointIdIterators. The
  //  \code{PointIdsBegin()} method returns the iterator to the first
  //  point-identifier in the cell.  The \code{PointIdsEnd()} method returns
  //  the iterator to the past-end point-identifier in the cell.
  //
  //  \index{CellType!PointIdsBegin()}
  //  \index{CellType!PointIdsEnd()}
  //  \index{CellType!PointIdIterator}
  //  \index{PointIdIterator}
  //  \index{PointIdsBegin()}
  //  \index{PointIdsEnd()}
  //
  //  Software Guide : EndLatex 

  cellIterator = mesh->GetCells()->Begin();
  cellEnd      = mesh->GetCells()->End();
  
  while( cellIterator != cellEnd ) 
    {
    CellType * cell = cellIterator.Value();

    std::cout << "cell with " << cell->GetNumberOfPoints();
    std::cout << " points   " << std::endl;

    // Software Guide : BeginCodeSnippet
    typedef CellType::PointIdIterator     PointIdIterator;

    PointIdIterator pointIditer = cell->PointIdsBegin();
    PointIdIterator pointIdend  = cell->PointIdsEnd();

    while( pointIditer != pointIdend )
      {
      std::cout << *pointIditer << std::endl;
      ++pointIditer;
      }
    // Software Guide : EndCodeSnippet

    ++cellIterator;
    }


  //  Software Guide : BeginLatex
  //
  //  Note that the point-identifier is obtained from the iterator using the
  //  more traditional \code{*iterator} notation instead the \code{Value()}
  //  notation used by cell-iterators.
  //
  //  Software Guide : EndLatex 


  //  Software Guide : BeginLatex
  //
  //  Up to here, the topology of the K-Complex is not completely defined since
  //  we have only introduced the cells. ITK allows the user to define
  //  explicitly the neighborhood relationships between cells. It is clear that
  //  a clever exploration of the point identifiers could have allowed a user
  //  to figure out the neighborhood relationships. For example, two triangle
  //  cells sharing the same two point identifiers will probably be neighbor
  //  cells. Some of the drawbacks on this implicit discovery of neighborhood
  //  relationships is that it takes computing time and that some applications
  //  may not accept the same assumptions. A specific case is surgery
  //  simulation. This application typically simulates bistoury cuts
  //  in a mesh representing an organ. A small cut in the surface may be made
  //  by specifying that two triangles are not considered to be neighbors any
  //  more. 
  //
  //  Neighborhood relationships are represented in the mesh by the
  //  notion of \emph{BoundaryFeature}. Every cell has an internal list of
  //  cell-identifiers pointing to other cells that are considered to be its
  //  neighbors. Boundary features are classified by dimension. For example, a
  //  line will have two boundary features of dimension zero corresponding to
  //  its two vertices. A tetrahedron will have boundary features of dimension
  //  zero, one and two, corresponding to its four vertices, six edges and four
  //  triangular faces. It is up to the user to specify the connections between
  //  the cells. 
  //
  //  \index{BoundaryFeature}
  //  \index{CellBoundaryFeature}
  //  \index{itk::Mesh!BoundaryFeature}
  //
  //  Let's take in our current example the tetrahedron cell that was
  //  associated with the cell-identifier \code{0} and assign to it the four
  //  vertices as boundaries of dimension zero. This is done by invoking the
  //  \code{SetBoundaryAssignment()} method on the Mesh class. 
  //
  //  \index{itk::Mesh!SetBoundaryAssignment()}
  //  \index{SetBoundaryAssignment()!itk::Mesh}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  MeshType::CellIdentifier cellId = 0;  // the tetrahedron

  int dimension = 0;                    // vertices

  MeshType::CellFeatureIdentifier featureId = 0; 

  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 11 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 12 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 13 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 14 );
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  The \code{featureId} is simply a number associated with the sequence of
  //  the boundary cells of the same dimension in a specific cell. For example,
  //  the zero-dimensional features of a tetrahedron are its four vertices.
  //  Then the zero-dimensional feature-Ids for this cell will range from zero
  //  to three. The one-dimensional features of the tetrahedron are its six
  //  edges, hence its one-dimensional feature-Ids will range from zero to
  //  five. The two-dimensional features of the tetrahedron are its four
  //  triangular faces. The two-dimensional feature ids will then range from
  //  zero to three. The following table summarizes the use on indices for
  //  boundary assignments.
  //
  //  \begin{center}
  //  \begin{tabular}{ | c || c | c | c | }
  //  \hline
  //  Dimension & CellType & FeatureId range & Cell Ids \\ \hline\hline
  //  0 & VertexCell & [0:3] & \{1,2,3,4\} \\   \hline 
  //  1 & LineCell & [0:5] & \{5,6,7,8,9,10\} \\   \hline 
  //  2 & TriangleCell & [0:3] & \{11,12,13,14\} \\ \hline 
  //  \end{tabular}
  //  \end{center}
  // 
  //  In the code example above, the values of featureId range from zero to
  //  three. The cell identifiers of the vertex cells in this example are the
  //  numbers \{11,12,13,14\}.
  //
  //  Let's now assign one-dimensional boundary features of the tetrahedron.
  //  Those are the line cells with identifiers  \{5,6,7,8,9,10\}. Note that the
  //  feature identifier is reinitialized to zero since the count is
  //  independent for each dimension.
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  cellId    = 0;  // still the tetrahedron
  dimension = 1;  // one-dimensional features = edges
  featureId = 0;  // reinitialize the count

  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  5 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  6 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  7 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  8 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  9 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 10 );
  // Software Guide : EndCodeSnippet

  //  Software Guide : BeginLatex
  //
  //  Finally we assign the two-dimensional boundary features of the
  //  tetrahedron. These are the four triangular cells with identifiers
  //  \{1,2,3,4\}. The featureId is reset to zero since feature-Ids are
  //  independent on each dimension.
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  cellId    = 0;  // still the tetrahedron
  dimension = 2;  // two-dimensional features = triangles
  featureId = 0;  // reinitialize the count

  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  1 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  2 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  3 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  4 );
  // Software Guide : EndCodeSnippet

  //  Software Guide : BeginLatex
  //
  //  At this point we can query the tetrahedron cell for information about its
  //  boundary features. For example, the number of boundary features of each
  //  dimension can be obtained with the method
  //  \code{GetNumberOfBoundaryFeatures()}.
  //
  //  \index{itk::Mesh!CellFeatureCount}
  //  \index{itk::Mesh!GetNumberOfBoundaryFeatures()}
  //  \index{GetNumberOfBoundaryFeatures()!itk::Mesh}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  cellId = 0; // still the tetrahedron

  MeshType::CellFeatureCount n0;  // number of zero-dimensional features
  MeshType::CellFeatureCount n1;  // number of  one-dimensional features
  MeshType::CellFeatureCount n2;  // number of  two-dimensional features

  n0 = mesh->GetNumberOfCellBoundaryFeatures( 0, cellId );
  n1 = mesh->GetNumberOfCellBoundaryFeatures( 1, cellId );
  n2 = mesh->GetNumberOfCellBoundaryFeatures( 2, cellId );
  // Software Guide : EndCodeSnippet


  std::cout << "Number of boundary features of the cellId= " << cellId << std::endl;
  std::cout << "Dimension 0 = " << n0 << std::endl;
  std::cout << "Dimension 1 = " << n1 << std::endl;
  std::cout << "Dimension 2 = " << n2 << std::endl;


  //  Software Guide : BeginLatex
  //
  //  The boundary assignments can be recovered with the method
  //  \code{GetBoundaryAssigment()}. For example, the zero-dimensional features
  //  of the tetrahedron can be obtained with the following code.
  //
  // \index{itk::Mesh!GetBoundaryAssignment()}
  // \index{GetBoundaryAssignment()!itk::Mesh}
  //
  //  Software Guide : EndLatex 

  std::cout << "Boundary features of dimension 0 " << std::endl;

  // Software Guide : BeginCodeSnippet
  dimension = 0;
  for(unsigned int b0=0; b0 < n0; b0++)
    {
    MeshType::CellIdentifier id;
    bool found = mesh->GetBoundaryAssignment( dimension, cellId, b0, &id );
    if( found ) std::cout << id << std::endl;
    }
  // Software Guide : EndCodeSnippet

  dimension = 1;
  std::cout << "Boundary features of dimension " << dimension << std::endl;
  for(unsigned int b1=0; b1 < n1; b1++)
    {
    MeshType::CellIdentifier id;
    bool found = mesh->GetBoundaryAssignment( dimension, cellId, b1, &id );
    if( found )
      {
      std::cout << id << std::endl;
      }
    }

  dimension = 2;
  std::cout << "Boundary features of dimension " << dimension << std::endl;
  for(unsigned int b2=0; b2 < n2; b2++)
    {
    MeshType::CellIdentifier id;
    bool found = mesh->GetBoundaryAssignment( dimension, cellId, b2, &id );
    if( found )
      {
      std::cout << id << std::endl;
      }
    }


  //  Software Guide : BeginLatex
  //
  //  The following code illustrates how to set the edge boundaries for one of
  //  the triangular faces.
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  cellId     =  2;    // one of the triangles 
  dimension  =  1;    // boundary edges
  featureId  =  0;    // start the count of features

  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  7 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++,  9 );
  mesh->SetBoundaryAssignment( dimension, cellId, featureId++, 10 );
  // Software Guide : EndCodeSnippet

  std::cout << "In cell Id = " << cellId << std::endl;
  std::cout << "Boundary features of dimension " << dimension;
  n1 = mesh->GetNumberOfCellBoundaryFeatures( dimension, cellId);
  std::cout << " = " << n1 << std::endl;
  for(unsigned int b1=0; b1 < n1; b1++)
    {
    MeshType::CellIdentifier id;
    bool found = mesh->GetBoundaryAssignment( dimension, cellId, b1, &id );
    if( found )
      {
      std::cout << id << std::endl;
      }
    }

  return 0;
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍偷拍网站| 91黄色在线观看| 久久精品国产99国产| 日韩av网站免费在线| 日韩影视精彩在线| 亚洲第四色夜色| 天天综合色天天综合色h| 亚洲国产成人av网| 天天亚洲美女在线视频| 日韩成人伦理电影在线观看| 首页国产欧美久久| 麻豆精品在线播放| 国产精品911| av成人免费在线| 在线观看国产一区二区| 欧洲一区二区三区免费视频| 欧美猛男gaygay网站| 欧美精品免费视频| 欧美成人精品高清在线播放| 国产亚洲精品福利| 亚洲丝袜另类动漫二区| 亚洲成人av一区二区三区| 日本va欧美va精品| 国产乱码字幕精品高清av| 国产精品一区二区在线观看网站 | 成年人国产精品| 99国产精品久久久久久久久久| 99re热这里只有精品免费视频| 色综合久久综合网97色综合 | 性做久久久久久免费观看欧美| 日韩高清在线电影| 国产91精品精华液一区二区三区| 97se亚洲国产综合自在线 | 日韩av电影免费观看高清完整版在线观看| 天天色 色综合| 久久99国产精品久久99| 成人永久免费视频| 欧美猛男男办公室激情| 2020国产精品| 亚洲精品一二三| 久久国产精品区| 91香蕉视频黄| 欧美videossexotv100| 一色屋精品亚洲香蕉网站| 日韩在线观看一区二区| 丁香激情综合国产| 欧美性猛交xxxx黑人交| 久久久不卡网国产精品二区| 一区二区三区日韩欧美精品| 精品亚洲免费视频| 色先锋久久av资源部| 精品裸体舞一区二区三区| 亚洲欧美日韩人成在线播放| 久久精品国产在热久久| 在线看日本不卡| 国产亚洲欧美日韩在线一区| 日韩高清国产一区在线| 91麻豆国产精品久久| 久久久久国产精品人| 五月激情丁香一区二区三区| 99久久婷婷国产| 久久久久久久久99精品| 日韩激情视频网站| 91天堂素人约啪| 亚洲精品一区二区三区蜜桃下载| 亚洲妇女屁股眼交7| 99riav久久精品riav| 精品国产凹凸成av人导航| 亚洲国产aⅴ成人精品无吗| av高清不卡在线| xvideos.蜜桃一区二区| 三级成人在线视频| 色狠狠色噜噜噜综合网| 欧美激情一区二区三区不卡| 久久精品国产在热久久| 3d成人动漫网站| 一区二区三区欧美| gogogo免费视频观看亚洲一| 久久精品水蜜桃av综合天堂| 久久99国产乱子伦精品免费| 在线不卡欧美精品一区二区三区| 亚洲宅男天堂在线观看无病毒| 99久久国产免费看| 国产精品毛片无遮挡高清| 国产激情一区二区三区| 久久综合色综合88| 韩国一区二区视频| 精品少妇一区二区三区在线播放 | 日韩在线卡一卡二| 欧美亚洲国产一区二区三区va| 国产精品久久久久久久裸模| 国产精品一区二区男女羞羞无遮挡| 精品理论电影在线| 全部av―极品视觉盛宴亚洲| 欧美日韩精品一区二区三区蜜桃| 亚洲精品国产一区二区三区四区在线| 波多野结衣中文字幕一区 | 国产不卡视频在线播放| 久久伊人中文字幕| 国内精品伊人久久久久av一坑| 4438x成人网最大色成网站| 天堂av在线一区| 欧美精品欧美精品系列| 日本午夜精品一区二区三区电影| 欧美一区二区视频免费观看| 日韩在线一二三区| 欧美成人一级视频| 国产精品911| 中文字幕在线一区| 91视频在线观看| 一区二区欧美精品| 91精品国产综合久久久久久久久久| 午夜精品123| 日韩欧美精品在线| 国产盗摄女厕一区二区三区| 国产精品热久久久久夜色精品三区 | 中文字幕不卡一区| 97久久超碰精品国产| 亚洲一区二区三区四区在线| 欧美日韩小视频| 男女男精品网站| 久久久久国色av免费看影院| 成人99免费视频| 亚洲五月六月丁香激情| 日韩午夜中文字幕| 国产69精品久久99不卡| 1区2区3区国产精品| 欧美日韩国产高清一区| 激情图片小说一区| 成人欧美一区二区三区视频网页| 欧美最新大片在线看| 免费看欧美女人艹b| 国产亚洲一区字幕| 91在线porny国产在线看| 日本系列欧美系列| 国产精品欧美综合在线| 欧美日韩免费观看一区二区三区 | 国产精品一品二品| 一区二区在线看| 日韩欧美国产1| av在线播放不卡| 天堂精品中文字幕在线| 久久女同互慰一区二区三区| 色老综合老女人久久久| 乱一区二区av| 一区二区三区在线免费视频| 日韩欧美一级特黄在线播放| 精品国产sm最大网站免费看| 99精品视频在线观看免费| 全国精品久久少妇| 中文字幕一区二区三区不卡| 欧美一级精品大片| 一本色道久久加勒比精品| 青青草原综合久久大伊人精品| 国产精品沙发午睡系列990531| 91精品黄色片免费大全| 99re成人在线| 精品亚洲免费视频| 亚洲国产日韩一区二区| 国产网站一区二区三区| 91精品黄色片免费大全| 在线视频一区二区免费| 国产成人一区在线| 日本亚洲免费观看| 亚洲自拍偷拍欧美| 国产精品久线在线观看| 日韩精品一区二区三区四区| 色吊一区二区三区| 国产91高潮流白浆在线麻豆| 美女在线一区二区| 午夜欧美2019年伦理| 亚洲日本在线天堂| 亚洲国产精品成人综合| 精品日产卡一卡二卡麻豆| 欧美蜜桃一区二区三区| 91成人在线观看喷潮| 91一区二区三区在线观看| 国产精品香蕉一区二区三区| 麻豆免费看一区二区三区| 天天综合色天天综合色h| 亚洲精品高清视频在线观看| 国产精品美女久久久久高潮| 久久久久久久综合日本| 日韩久久久久久| 欧美日韩高清一区二区不卡| 91看片淫黄大片一级在线观看| 国产91精品在线观看| 国模套图日韩精品一区二区| 蜜桃视频第一区免费观看| 午夜久久久久久| 亚洲一卡二卡三卡四卡五卡| 亚洲精品国产精华液| 综合久久综合久久| 国产精品乱码妇女bbbb| 欧美国产激情二区三区| 国产亚洲短视频| 久久久99精品免费观看| 精品国产一区二区三区久久影院 | 国产精品久久久久久久蜜臀| 国产喷白浆一区二区三区|