SmApiTessellationParams.h#

Fully qualified name: SM_API/inc/SmApiTessellationParams.h

File members: SM_API/inc/SmApiTessellationParams.h

// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

/******************************************************************/
#ifndef __SmApiTessellationParams_H__
#define __SmApiTessellationParams_H__

namespace SmTessellationDefaults
{
  constexpr double kChordHeightTol     = 0.0;
  constexpr double kCurveAngleTolDeg   = 25.0;
  constexpr double kSurfaceAngleTolDeg = 25.0;
  constexpr double kMaxEdgeLength      = 0.0;
  constexpr double kMaxAspectRatio     = 0.0;
}

struct SmTessellationParams
{
  double dChordHeightTol     = SmTessellationDefaults::kChordHeightTol;
  double dCurveAngleTolDeg   = SmTessellationDefaults::kCurveAngleTolDeg;
  double dSurfaceAngleTolDeg = SmTessellationDefaults::kSurfaceAngleTolDeg;
  double dMaxEdgeLength      = SmTessellationDefaults::kMaxEdgeLength;
  double dMaxAspectRatio     = SmTessellationDefaults::kMaxAspectRatio;
};

#endif // __SmApiTessellationParams_H__