user3019180
user3019180

Reputation: 45

how to remove edges within selective surface on mesh viewer?

I'm using CGAL edge collapsing to remove edges on mesh and it's working successfully .

But I want to run the edge collapsing process within selected surface on mesh viewer .

I preview the Geomview (.off ) using the following code:

QWidget* centralWidget = new QWidget(viewer);
centralWidget->setSizePolicy(QSizePolicy::Maximum,QSizePolicy::Maximum);
setCentralWidget( new CGAL::SimpleLCCViewerQt<LCC, CGAL::DefaultColorFunctorLCC>(&qWin ,
                  lcc,
                  "Basic LCC Viewer",
                  false,
                   fcolor ) );
show();

So, How Can I select specific surface region on mesh viewer and apply the edge collapsing on the selected surface only ?

I appreciate any help .

Upvotes: 0

Views: 95

Answers (1)

gdamiand
gdamiand

Reputation: 681

You need to add a selection operation in the viewer. This is not straightforward. You need for example to track the mouse event, in order to drag a rectangle. Then you need to iterate through all the darts, and select all the ones that are in the rectangle.

Upvotes: 1

Related Questions