![]() ![]() It's possible to use per-face variables in the expression: ![]() You can specify custom name and a function to generate attribute's values MeshLab filter name: ‘Define New Per Face Custom Point Attribute’Īdd a new Per-Face custom point attribute to current mesh. (0 or 1 is equivalent to the standard IMLS) compute_new_custom_point_attribute_per_face ¶ MLS - Max fitting iterations: Max number of fitting iterations. X0,y0,z0 for the first vertex position, x1,y1,z1 for the second vertex position, x2,y2,z2 for the third vertex position, nx0,ny0,nz0 nx1,ny1,nz1 nx2,ny2,nz2 for vertex normals, r0,g0,b0,a0 r1,g1,b1,a1 r2,g2,b2,a2 for vertex colors, vi0, vi1, vi2 for vertex indices, q0,q1,q2 for vertex quality, wtu0,wtv0 wtu1,wtv1 wtu2,wtv2 for per-wedge texture coords, ti for face texture index, vsel0,vsel1,vsel2 for vertex selection (1 yes, 0 no) fi for face index, fr,fg,fb,fa for face color, fq for face quality, fnx,fny,fnz for face normal, fsel face selection (1 yes, 0 no). It's possible to use the following per-face variables, or variables associated to the three vertex of every face: Red, Green, Blue and Alpha channels may be defined specifying a function in their respective fields. MeshLab filter name: ‘Per Face Color Function’Ĭolor function using muparser lib to generate new RGBA color for every face MeshLab filter name: ‘Random Component Color’Ĭolorize each connected component randomly. Please note this is not a transparency effect, but just influences the weigthing between different images compute_color_by_conntected_component_per_face ¶ In this way it is possible to mask-out parts of the images that should not be projected on the mesh. Use image alpha weight: If true, alpha channel of the image is used as additional weight. Default values listed here are computed on a 1x1x1 cube (pymeshlab/tests/sample/cube.obj), but their value will be computed on the input mesh if they are left as default. Please note: some filter parameters depend on the mesh(es) used as input of the filter. Most of the filters do not return nothing, therefore the dictionary will be empty. The _filter() returns a dictionary that may contain some values returned by the applied filter. The string is expected to have at least an extension on its final characters see the documentation of the specific filter for further info File Name: a classic str that represents the path of a file that is going to be saved or loaded by the filter.This parameter is of type int, which indicates the id of the mesh in the MeshSet Mesh: represents a parameter that links to one of the meshes contained in the MeshSet on which the filter is applied.4x4 Matrix: represents a 4x4 Matrix of floats, and the parameter can be of type numpy.ndarray] (a 4x4 numpy array of floats).3D Point (or 3D Vector): represents a 3D point or vector, and the parameter can be of type numpy.ndarray] (a numpy array containing three floats).Color: represents a color, and the parameter can be of type pmeshlab.Color see the documentation of the pmeshlab.Color for further info.These values type can be int or str see the documentation of the specific filter for further info Enum: represents a parameter that can accept just one of a limited set of possible values.pmeshlab.AbsoluteValue: the parameter will be treated as absolute value see the documentation of the pmeshlab.AbsoluteValue for further info.pmeshlab.Percentage (recommended): the parameter will be treated as relative percentage value see the documentation of the pmeshlab.Percentage for further info.This parameter can be of two different types: Percentage: represents a parameter that is relative to some other measure, specified in the documentation of the filter.Bounded Float: a classic float that is expected to be bounded between a min and a max value an out-of-bounds value will raise an exception. ![]()
0 Comments
Leave a Reply. |