Example of mesh weighted offset
- Python
from meshlib import mrmeshpy
secondaryRadius=0.1,
primaryResolution=16,
secondaryResolution=16)
verts_num = mesh.points.size()
for i in range(verts_num):
weight = abs(mesh.points.vec[i].x / 5)
scalars.vec[i] = weight
params.offset = 0.2
params.dist.maxWeight = max(scalars.vec)
None saveMesh(Mesh mesh, os.PathLike|str|bytes file, SaveSettings settings='{}')
float suggestVoxelSize(MeshPart mp, float approxNumVoxels)
Mesh weightedMeshShell(Mesh mesh, VertScalars vertWeights, WeightedPointsShellParametersMetric params)
Mesh makeTorus(float primaryRadius=1.0, float secondaryRadius=0.10000000149011612, int primaryResolution=16, int secondaryResolution=16, std_vector_Vector3_float points=None)