I am trying to automate the scripting of an adaptive remesh (after creating a non-manifold assembly).
I need to mesh the bone and implant with a mesh size and the screws with a smaller one. I am trying to use the trimatic.adaotive_remesh with local remesh parameters = the surface sets that need to be different.
I get the error of "Failed to convert to ¨FloatType¨ "
I have tried to input these surface sets as a list and as a tuple inside the local remesh parameters, but nothing seems to work.
The object to remesh, the max triangle edge length, and the influence area.
The second two are floating variables. Are you ensuring you are including these parameters and that they are the right type?
See below from the scripting manual:
local_remesh_parameters (((trimatic.Object, float, float),), optional) – Tuple of tuples containing the info (entity, maximum triangle edge length, influence area).
Let us know if this helps or you have other questions!
I solved it by creating the tuple of tuples with:
surfsets = [(surfaceremesh[i], 0.7, 0.0) for i in range(len(surfaceremesh))]
and then doing the adaptive remesh with local_remesh_parameters = tuple(surfsets)