Skip to content

Commit

Permalink
trivial adjustments to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
petercamps committed Dec 20, 2024
1 parent 9c05bec commit 4d31565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SKIRT/core/TetraMeshSpatialGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,12 +803,13 @@ class TetraMeshSpatialGrid::MySegmentGenerator : public PathSegmentGenerator
{
if (state() == State::Unknown)
{
// moveInside does not move the photon packet inside the convex hull so it is currently disabled
// try moving the photon packet inside the grid; if this is impossible, return an empty path
if (!moveInside(_grid->extent(), _grid->_eps)) return false;

// get the index of the cell containing the current position
_mr = _grid->cellIndex(r());
_enteringFace = -1;

// very rare edge case where no cell is found at domain boundary
if (_mr == -1) return false;

Expand Down
2 changes: 1 addition & 1 deletion SKIRT/core/TetraMeshSpatialGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class tetgenio;
- Delaunay Tetrahedralization:
Generate a unique Delaunay tetrahedral mesh from a given set of vertices.
- Mesh Refinement:
- %Mesh Refinement:
Refine the tetrahedral mesh using TetGen's Delaunay refinement algorithm. This option
is enabled through the \em refine property of this class.
Expand Down

0 comments on commit 4d31565

Please sign in to comment.