mirror of https://github.com/CGAL/cgal
Fix indentation and markdown
This commit is contained in:
parent
1006be85bd
commit
cb10422e3c
|
|
@ -708,7 +708,7 @@ user might encounter.
|
||||||
## I/O Functions ##
|
## I/O Functions ##
|
||||||
- \link PkgBGLIOFct CGAL::read_off() \endlink
|
- \link PkgBGLIOFct CGAL::read_off() \endlink
|
||||||
- \link PkgBGLIOFct CGAL::write_off() \endlink
|
- \link PkgBGLIOFct CGAL::write_off() \endlink
|
||||||
- \link PkgBGLIOFct `CGAL::write_VTP()` \endlink
|
- \link PkgBGLIOFct CGAL::write_VTP() \endlink
|
||||||
- \link PkgBGLIOFct CGAL::write_wrl() \endlink
|
- \link PkgBGLIOFct CGAL::write_wrl() \endlink
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -55,13 +55,13 @@ write_polys(std::ostream& os,
|
||||||
for( face_iterator fit = faces(mesh).begin() ;
|
for( face_iterator fit = faces(mesh).begin() ;
|
||||||
fit != faces(mesh).end() ;
|
fit != faces(mesh).end() ;
|
||||||
++fit )
|
++fit )
|
||||||
{
|
{
|
||||||
off += 3;
|
off += 3;
|
||||||
offsets.push_back(off);
|
offsets.push_back(off);
|
||||||
BOOST_FOREACH(vertex_descriptor v,
|
BOOST_FOREACH(vertex_descriptor v,
|
||||||
vertices_around_face(halfedge(*fit, mesh), mesh))
|
vertices_around_face(halfedge(*fit, mesh), mesh))
|
||||||
connectivity_table.push_back(V[v]);
|
connectivity_table.push_back(V[v]);
|
||||||
}
|
}
|
||||||
write_vector<std::size_t>(os,connectivity_table);
|
write_vector<std::size_t>(os,connectivity_table);
|
||||||
write_vector<std::size_t>(os,offsets);
|
write_vector<std::size_t>(os,offsets);
|
||||||
write_vector<unsigned char>(os,cell_type);
|
write_vector<unsigned char>(os,cell_type);
|
||||||
|
|
@ -105,13 +105,13 @@ write_polys_tag(std::ostream& os,
|
||||||
else {
|
else {
|
||||||
os << "\">\n";
|
os << "\">\n";
|
||||||
for( face_iterator fit = faces(mesh).begin() ;
|
for( face_iterator fit = faces(mesh).begin() ;
|
||||||
fit != faces(mesh).end() ;
|
fit != faces(mesh).end() ;
|
||||||
++fit )
|
++fit )
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(vertex_descriptor v,
|
BOOST_FOREACH(vertex_descriptor v,
|
||||||
vertices_around_face(halfedge(*fit, mesh), mesh))
|
vertices_around_face(halfedge(*fit, mesh), mesh))
|
||||||
os << V[v] << " ";
|
os << V[v] << " ";
|
||||||
}
|
}
|
||||||
os << " </DataArray>\n";
|
os << " </DataArray>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -128,12 +128,12 @@ write_polys_tag(std::ostream& os,
|
||||||
os << "\">\n";
|
os << "\">\n";
|
||||||
std::size_t polys_offset = 0;
|
std::size_t polys_offset = 0;
|
||||||
for( face_iterator fit = faces(mesh).begin() ;
|
for( face_iterator fit = faces(mesh).begin() ;
|
||||||
fit != faces(mesh).end() ;
|
fit != faces(mesh).end() ;
|
||||||
++fit )
|
++fit )
|
||||||
{
|
{
|
||||||
polys_offset += 3;
|
polys_offset += 3;
|
||||||
os << polys_offset << " ";
|
os << polys_offset << " ";
|
||||||
}
|
}
|
||||||
os << " </DataArray>\n";
|
os << " </DataArray>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ discoverInfiniteComponent(const CDT & ct)
|
||||||
{
|
{
|
||||||
Face_handle fi = fh->neighbor(i);
|
Face_handle fi = fh->neighbor(i);
|
||||||
if(fi->is_in_domain()
|
if(fi->is_in_domain()
|
||||||
&& !ct.is_constrained(CDT::Edge(fh,i)))
|
&& !ct.is_constrained(CDT::Edge(fh,i)))
|
||||||
queue.push_back(fi);
|
queue.push_back(fi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -270,7 +270,7 @@ MainWindow::MainWindow()
|
||||||
dgi->setFacesInDomainBrush(facesColor);
|
dgi->setFacesInDomainBrush(facesColor);
|
||||||
|
|
||||||
QObject::connect(this, SIGNAL(changed()),
|
QObject::connect(this, SIGNAL(changed()),
|
||||||
dgi, SLOT(modelChanged()));
|
dgi, SLOT(modelChanged()));
|
||||||
dgi->setVerticesPen(
|
dgi->setVerticesPen(
|
||||||
QPen(Qt::red, 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
QPen(Qt::red, 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
||||||
dgi->setVoronoiPen(
|
dgi->setVoronoiPen(
|
||||||
|
|
@ -286,7 +286,7 @@ MainWindow::MainWindow()
|
||||||
// the signal/slot mechanism
|
// the signal/slot mechanism
|
||||||
pi = new CGAL::Qt::GraphicsViewPolylineInput<K>(this, &scene, 0, true); // inputs polylines which are not closed
|
pi = new CGAL::Qt::GraphicsViewPolylineInput<K>(this, &scene, 0, true); // inputs polylines which are not closed
|
||||||
QObject::connect(pi, SIGNAL(generate(CGAL::Object)),
|
QObject::connect(pi, SIGNAL(generate(CGAL::Object)),
|
||||||
this, SLOT(processInput(CGAL::Object)));
|
this, SLOT(processInput(CGAL::Object)));
|
||||||
|
|
||||||
tcc = new CGAL::Qt::TriangulationCircumcircle<CDT>(&scene, &cdt, this);
|
tcc = new CGAL::Qt::TriangulationCircumcircle<CDT>(&scene, &cdt, this);
|
||||||
tcc->setPen(QPen(Qt::red, 0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
tcc->setPen(QPen(Qt::red, 0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
||||||
|
|
@ -299,7 +299,7 @@ MainWindow::MainWindow()
|
||||||
// Manual handling of actions
|
// Manual handling of actions
|
||||||
//
|
//
|
||||||
QObject::connect(this->actionQuit, SIGNAL(triggered()),
|
QObject::connect(this->actionQuit, SIGNAL(triggered()),
|
||||||
this, SLOT(close()));
|
this, SLOT(close()));
|
||||||
|
|
||||||
// We put mutually exclusive actions in an QActionGroup
|
// We put mutually exclusive actions in an QActionGroup
|
||||||
QActionGroup* ag = new QActionGroup(this);
|
QActionGroup* ag = new QActionGroup(this);
|
||||||
|
|
@ -339,7 +339,7 @@ MainWindow::MainWindow()
|
||||||
|
|
||||||
this->addRecentFiles(this->menuFile, this->actionQuit);
|
this->addRecentFiles(this->menuFile, this->actionQuit);
|
||||||
connect(this, SIGNAL(openRecentFile(QString)),
|
connect(this, SIGNAL(openRecentFile(QString)),
|
||||||
this, SLOT(open(QString)));
|
this, SLOT(open(QString)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -535,11 +535,11 @@ void
|
||||||
MainWindow::on_actionLoadConstraints_triggered()
|
MainWindow::on_actionLoadConstraints_triggered()
|
||||||
{
|
{
|
||||||
QString fileName = QFileDialog::getOpenFileName(this,
|
QString fileName = QFileDialog::getOpenFileName(this,
|
||||||
tr("Open Constraint File"),
|
tr("Open Constraint File"),
|
||||||
".",
|
".",
|
||||||
tr("Edge files (*.edg);;"
|
tr("Edge files (*.edg);;"
|
||||||
"Plg files (*.plg);;"
|
"Plg files (*.plg);;"
|
||||||
"Poly files (*.poly)"));
|
"Poly files (*.poly)"));
|
||||||
open(fileName);
|
open(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -656,10 +656,10 @@ void
|
||||||
MainWindow::on_actionSaveConstraints_triggered()
|
MainWindow::on_actionSaveConstraints_triggered()
|
||||||
{
|
{
|
||||||
QString fileName = QFileDialog::getSaveFileName(this,
|
QString fileName = QFileDialog::getSaveFileName(this,
|
||||||
tr("Save Constraints"),
|
tr("Save Constraints"),
|
||||||
".",
|
".",
|
||||||
tr("Poly files (*.poly)\n"
|
tr("Poly files (*.poly)\n"
|
||||||
"Edge files (*.edg)\n"
|
"Edge files (*.edg)\n"
|
||||||
"VTU files (*.vtu)"));
|
"VTU files (*.vtu)"));
|
||||||
if(! fileName.isEmpty()){
|
if(! fileName.isEmpty()){
|
||||||
saveConstraints(fileName);
|
saveConstraints(fileName);
|
||||||
|
|
@ -804,14 +804,14 @@ MainWindow::on_actionInsertRandomPoints_triggered()
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
|
||||||
const int number_of_points =
|
const int number_of_points =
|
||||||
QInputDialog::getInt(this,
|
QInputDialog::getInt(this,
|
||||||
tr("Number of random points"),
|
tr("Number of random points"),
|
||||||
tr("Enter number of random points"),
|
tr("Enter number of random points"),
|
||||||
100,
|
100,
|
||||||
0,
|
0,
|
||||||
(std::numeric_limits<int>::max)(),
|
(std::numeric_limits<int>::max)(),
|
||||||
1,
|
1,
|
||||||
&ok);
|
&ok);
|
||||||
|
|
||||||
if(!ok) {
|
if(!ok) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ Release date: March 2019
|
||||||
`Arr_polycurve_basic_traits_2`.
|
`Arr_polycurve_basic_traits_2`.
|
||||||
|
|
||||||
### 2D and 3D Mesh Generation
|
### 2D and 3D Mesh Generation
|
||||||
- Added 3 functions for writing in modern VTK formats:
|
- Added 3 functions for writing in XML VTK formats:
|
||||||
-`CGAL::output_to_vtu()`
|
- `CGAL::output_to_vtu()`
|
||||||
-`CGAL::write_VTU()`
|
- `CGAL::write_VTU()`
|
||||||
-`CGAL::write_VTP()`
|
- `CGAL::write_VTP()`
|
||||||
|
|
||||||
### CGAL and the Boost Graph Library (BGL)
|
### CGAL and the Boost Graph Library (BGL)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ namespace CGAL{
|
||||||
//!
|
//!
|
||||||
template <class C3T3>
|
template <class C3T3>
|
||||||
void output_to_vtu(std::ostream& os,
|
void output_to_vtu(std::ostream& os,
|
||||||
const C3T3& c3t3,
|
const C3T3& c3t3,
|
||||||
bool binary = true);
|
bool binary = true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue