Skip to content

Commit

Permalink
OCC: change args for trimesh
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Jan 23, 2025
1 parent 0b98993 commit b46362a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cassiopee/Converter/Converter/Converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ def convertExt2Format__(fileName):
elif extension == '.bstl': format = 'bin_stl'
elif extension == '.selig': format = 'fmt_selig'
elif extension == '.gltf': format = 'bin_gltf'
elif extension == '.glb': format = 'bin_gltf'
elif extension == '.fig': format = 'fmt_xfig'
elif extension == '.svg': format = 'fmt_svg'
elif extension == '.pov': format = 'fmt_pov'
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Converter/Converter/IO/GenIO_bingltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void parseMeshesGltf(cgltf_data* data, std::vector<FldArrayF*>& unstructField,

if (attr.type == cgltf_attribute_type_position)
{
printf("bloc " SF_D_ ": trouve coords\n", blockId);
//printf("bloc " SF_D_ ": trouve coords\n", blockId);
// numerotation i*3+j (i = pts, j = 0,1,2 composante)
//for (E_Int i = 0; i < data.size(); i++)
// printf("%f %f %f\n", data[i*3+0], data[i*3+1], data[i*3+2]);
Expand Down
5 changes: 2 additions & 3 deletions Cassiopee/OCC/OCC/Atomic/trimesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ PyObject* K_OCC::trimesh(PyObject* self, PyObject* args)
mode.hmin = hmin; // h min
//mode.hmin = K_CONST::E_MAX_FLOAT; // hmin as in landier
mode.chordal_error = hausd; // chordal error set
//mode.growth_ratio = grading; // grading forced (pas coherent avec hausd?)
mode.growth_ratio = 1.1; // grading ne sert pas si pas de lissage
mode.nb_smooth_iter = 0; // iter de lissage de la metrique
mode.growth_ratio = grading; // grading ne sert pas si pas de lissage
mode.nb_smooth_iter = 1; // iter de lissage de la metrique
mode.symmetrize = false;
}
else
Expand Down

0 comments on commit b46362a

Please sign in to comment.