Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I want to create a tag with the outputs(vertex weights) same as Vertex Map. I know I can generate Vertex Map directly, but I don't want do that. I want a simple example. Please!
Hello @lingza,
Thank you for reaching out to us. Your question is a bit ambiguous; I will answer in a series of statements.
VertexMapTag
VariableTag
CustomDataTag
In the end it depends on what you mean with '[the] same as [a] vertex map'. If you just want something similar in functionality, the C++ interface CustomDataTag is what you are looking for. If you want to write vretexmap data as a VertexMapTag, you must use the pattern lined out under point 3.
Cheers, Ferdinand
@ferdinand Thank you so much! I am not professional in c++.
I optimze my workflow with Density Map in ZRemesher in Remesh generator. ZRemesher uses vertex weights from the vertex map as density map after I put a vertex map into Density Map linkbox.
Actually, I mean that I want to create a tag which contains the vertex weights, then vertex weights are used by ZRemesher after I put the tag into Density Map linkbox. So I don't need a "vertex map" indeed, but I need a tag I describe above.
well as lined out, you cannot implement a VertexmMapTag which is the same as a normal VertexMapTag but has extra parameters to realize your desired functionality.
VertexmMapTag
You can solve this problem with either the pattern I described under point 3 in my last posting, or by implementing a ToolData plugin which simply generates the tag. The solution using a driver tag has the advantage that the user can continuously tweak the output of the vertexmap, while a tool must be picked up again.
ToolData
This is unfortunately not true. You will need a vertex map tag, as this parameter, the Density Map parameter, will accept only a VertexMapTag. It will not know what to do with a CustomDataTag . I would recommend having a look at the project file I have posted above, it contains a practical example for the pattern of a tag driving a vertex map.