MeshPart: Fix multiplication result converted to larger type

This commit is contained in:
Chris Hennes
2025-07-21 22:07:01 -05:00
parent 1d1acc1458
commit a1d73f8b78
2 changed files with 3 additions and 2 deletions

View File

@@ -196,7 +196,8 @@ ColMat<double, 3> FaceUnwrapper::interpolateFlatFace(const TopoDS_Face& face)
const TColStd_Array1OfReal& _vknots = _bspline->VKnotSequence();
Eigen::VectorXd weights;
weights.resize(_bspline->NbUPoles() * _bspline->NbVPoles());
weights.resize(static_cast<Eigen::Index>(_bspline->NbUPoles())
* static_cast<Eigen::Index>(_bspline->NbVPoles()));
long i = 0;
for (long u = 1; u <= _bspline->NbUPoles(); u++) {
for (long v = 1; v <= _bspline->NbVPoles(); v++) {

View File

@@ -368,7 +368,7 @@ Eigen::Matrix<double, Eigen::Dynamic, 2> NurbsBase2D::getUVMesh(int num_u_points
double v_min = this->v_knots(0);
double v_max = this->v_knots(this->v_knots.size() - 1);
Eigen::Matrix<double, Eigen::Dynamic, 2> uv_points;
uv_points.resize(num_u_points * num_v_points, 2);
uv_points.resize(static_cast<Eigen::Index>(num_u_points) * static_cast<Eigen::Index>(num_v_points), 2);
int i = 0;
for (int u = 0; u < num_u_points; u++)
{