Skip to content

Commit

Permalink
Remove "C++" code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Apr 27, 2021
1 parent 1cd77a9 commit e47b828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _posts/2021-04-27-Orthtree.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ or is only used a small number of times.

Building a new Octree and refining it with the default criteria can be done with only a few lines of code:

```c++
```
#include <iostream>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Octree.h>
Expand Down Expand Up @@ -100,7 +100,7 @@ int main() {

Once the tree is constructed, it's simple to perform queries:

```c++
```
...
// Find the 3 nearest points to the search point
auto search_point = new Point(1, -1, 0);
Expand All @@ -111,7 +111,7 @@ octree.nearest_k_neighbors(search_point, 3, std::back_inserter(neighbors));

The tree can also be traversed manually, or with the help of a traversal function:

```c++
```
...
// Manual traversal to reach the fifth child of the first child of the root
std::cout << octree.root()[0][4];
Expand Down

0 comments on commit e47b828

Please sign in to comment.