how to remove vertex , edge or face from CGAL::Linear_cell_complex_for_combinatorial_map












0















I'm creating an application using qt creator which read .off files as CGAL::Linear_cell_complex_for_combinatorial_map and preview it
I want to make operations on the read mesh such as removing vertix,edge or face and restore it .



I created a loop to access darts :
Dart_handle dh;



for (LCC_3::Dart_range::iterator it=lcc.darts().begin(),
itend=lcc.darts().end(); it!=itend; )
{
dh=it++;
if ( it!=itend && it==lcc.beta<2>(dh) ) ++it;

}


any help or usefull links to simplify mesh or removing vertices , edges or faces ?
I appreciate any help










share|improve this question



























    0















    I'm creating an application using qt creator which read .off files as CGAL::Linear_cell_complex_for_combinatorial_map and preview it
    I want to make operations on the read mesh such as removing vertix,edge or face and restore it .



    I created a loop to access darts :
    Dart_handle dh;



    for (LCC_3::Dart_range::iterator it=lcc.darts().begin(),
    itend=lcc.darts().end(); it!=itend; )
    {
    dh=it++;
    if ( it!=itend && it==lcc.beta<2>(dh) ) ++it;

    }


    any help or usefull links to simplify mesh or removing vertices , edges or faces ?
    I appreciate any help










    share|improve this question

























      0












      0








      0








      I'm creating an application using qt creator which read .off files as CGAL::Linear_cell_complex_for_combinatorial_map and preview it
      I want to make operations on the read mesh such as removing vertix,edge or face and restore it .



      I created a loop to access darts :
      Dart_handle dh;



      for (LCC_3::Dart_range::iterator it=lcc.darts().begin(),
      itend=lcc.darts().end(); it!=itend; )
      {
      dh=it++;
      if ( it!=itend && it==lcc.beta<2>(dh) ) ++it;

      }


      any help or usefull links to simplify mesh or removing vertices , edges or faces ?
      I appreciate any help










      share|improve this question














      I'm creating an application using qt creator which read .off files as CGAL::Linear_cell_complex_for_combinatorial_map and preview it
      I want to make operations on the read mesh such as removing vertix,edge or face and restore it .



      I created a loop to access darts :
      Dart_handle dh;



      for (LCC_3::Dart_range::iterator it=lcc.darts().begin(),
      itend=lcc.darts().end(); it!=itend; )
      {
      dh=it++;
      if ( it!=itend && it==lcc.beta<2>(dh) ) ++it;

      }


      any help or usefull links to simplify mesh or removing vertices , edges or faces ?
      I appreciate any help







      c++ graphics 3d mesh cgal






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 12:19









      n.mn.m

      658




      658
























          1 Answer
          1






          active

          oldest

          votes


















          1














          You can use the remove_cell operation. The method is templated by the dimension of the cell to remove: 0 for vertices, 1 for edges, 2 for faces...



          See the doc here and the example there.






          share|improve this answer
























          • is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

            – n.m
            Jan 7 at 17:42











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54006275%2fhow-to-remove-vertex-edge-or-face-from-cgallinear-cell-complex-for-combinato%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You can use the remove_cell operation. The method is templated by the dimension of the cell to remove: 0 for vertices, 1 for edges, 2 for faces...



          See the doc here and the example there.






          share|improve this answer
























          • is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

            – n.m
            Jan 7 at 17:42
















          1














          You can use the remove_cell operation. The method is templated by the dimension of the cell to remove: 0 for vertices, 1 for edges, 2 for faces...



          See the doc here and the example there.






          share|improve this answer
























          • is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

            – n.m
            Jan 7 at 17:42














          1












          1








          1







          You can use the remove_cell operation. The method is templated by the dimension of the cell to remove: 0 for vertices, 1 for edges, 2 for faces...



          See the doc here and the example there.






          share|improve this answer













          You can use the remove_cell operation. The method is templated by the dimension of the cell to remove: 0 for vertices, 1 for edges, 2 for faces...



          See the doc here and the example there.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 at 18:00









          gdamiandgdamiand

          37614




          37614













          • is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

            – n.m
            Jan 7 at 17:42



















          • is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

            – n.m
            Jan 7 at 17:42

















          is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

          – n.m
          Jan 7 at 17:42





          is there any example of removing/adding cells from read mesh , because all examples about polygon created within code like this: doc.cgal.org/latest/Combinatorial_map/… I don't know how to use dart handle in read mesh @gdamiand

          – n.m
          Jan 7 at 17:42




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54006275%2fhow-to-remove-vertex-edge-or-face-from-cgallinear-cell-complex-for-combinato%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas