fix: Replace qPi() with M_PI to resolve build error
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -770,8 +770,8 @@ void ViewportWidget::drawSketch(const SketchFeature* sketch)
|
||||
if (pair.second == 1) {
|
||||
const gp_Pnt& center = pair.first;
|
||||
for (int i = 0; i < numSegments; ++i) {
|
||||
float angle1 = (2.0f * qPi() * float(i)) / float(numSegments);
|
||||
float angle2 = (2.0f * qPi() * float(i + 1)) / float(numSegments);
|
||||
float angle1 = (2.0f * M_PI * float(i)) / float(numSegments);
|
||||
float angle2 = (2.0f * M_PI * float(i + 1)) / float(numSegments);
|
||||
|
||||
float x1, y1, z1, x2, y2, z2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user