Skip to content

Commit

Permalink
fix output operator, issue #486
Browse files Browse the repository at this point in the history
  • Loading branch information
dopitz authored and freibold committed May 17, 2024
1 parent 51f12d4 commit cda4cf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kernels/geometry/pointi.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ namespace embree
};

/*! output operator */
friend __forceinline embree_ostream operator<<(embree_ostream cout, const PointMi& line)
friend __forceinline embree_ostream operator<<(embree_ostream cout, const PointMi& point)
{
return cout << "Line" << M << "i {" << line.v0 << ", " << line.geomID() << ", " << line.primID() << "}";
return cout << "Point" << M << "i {" << point.geomID() << ", " << point.primID() << "}";
}

public:
Expand Down
2 changes: 1 addition & 1 deletion kernels/subdiv/bezier_curve.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace embree
}

friend embree_ostream operator<<(embree_ostream cout, const QuadraticBezierCurve& a) {
return cout << "QuadraticBezierCurve ( (" << a.u.lower << ", " << a.u.upper << "), " << a.v0 << ", " << a.v1 << ", " << a.v2 << ")";
return cout << "QuadraticBezierCurve (" << a.v0 << ", " << a.v1 << ", " << a.v2 << ")";
}
};

Expand Down

0 comments on commit cda4cf1

Please sign in to comment.