UltraShape Load Coarse Mesh From Trimesh:
The UltraShapeLoadCoarseMeshFromTrimesh node is designed to facilitate the loading and preprocessing of 3D mesh data directly from a TRIMESH object, which is a common format used in 3D modeling and computer graphics. This node is particularly useful for AI artists who need to convert complex 3D models into a format that can be further refined and manipulated within the UltraShape framework. By bypassing the need for file-based input, it streamlines the workflow, allowing for more efficient processing of 3D data. The node leverages advanced techniques to normalize and voxelize the mesh, ensuring that the resulting data is optimized for subsequent operations. This capability is essential for artists looking to integrate detailed 3D models into their projects while maintaining high performance and accuracy.
UltraShape Load Coarse Mesh From Trimesh Input Parameters:
model
The model parameter expects an ULTRASHAPE_MODEL type, which represents the model configuration used for processing the mesh. This parameter is crucial as it determines the device and data type settings that will be applied to the mesh during processing.
trimesh
The trimesh parameter requires a TRIMESH object, which is the 3D mesh data to be loaded and processed. This parameter is central to the node's function, as it provides the raw data that will be transformed into a coarse mesh.
normalize_scale
The normalize_scale parameter is a FLOAT value that controls the scaling of the mesh during normalization. It ranges from 0.5 to 1.0, with a default value of 0.99. This parameter ensures that the mesh is appropriately scaled to fit within a unit space, which is important for maintaining consistency across different models.
num_sharp_points
The num_sharp_points parameter is an INT that specifies the number of sharp points to be sampled from the mesh. It ranges from 10,000 to 500,000, with a default of 204,800. This parameter affects the level of detail captured in sharp features of the mesh, influencing the final appearance and accuracy of the model.
num_uniform_points
The num_uniform_points parameter is an INT that determines the number of uniformly distributed points to be sampled from the mesh. Like num_sharp_points, it ranges from 10,000 to 500,000, with a default of 204,800. This parameter ensures that the mesh is evenly represented, which is important for achieving a balanced and accurate model.
num_latents
The num_latents parameter is an INT that defines the number of latent tokens used during voxelization. It ranges from 0 to 131,072, with a default of 0, which uses the model's configuration default (usually 32,768). This parameter allows for control over the level of detail in the voxelized output, with higher values providing more detail at the cost of increased VRAM usage.
UltraShape Load Coarse Mesh From Trimesh Output Parameters:
coarse_mesh
The coarse_mesh output is of type ULTRASHAPE_MESH, representing the processed and voxelized mesh data. This output is crucial for further refinement and manipulation within the UltraShape framework, providing a structured and optimized representation of the original TRIMESH data.
UltraShape Load Coarse Mesh From Trimesh Usage Tips:
- Adjust the
normalize_scaleparameter to ensure your mesh fits well within the desired space, especially if you are working with models of varying sizes. - Use higher values for
num_sharp_pointsandnum_uniform_pointsif you require more detailed representations of your mesh, but be mindful of the increased computational load.
UltraShape Load Coarse Mesh From Trimesh Common Errors and Solutions:
Mesh not found: <mesh_path>
- Explanation: This error occurs when the specified mesh path cannot be resolved or the file does not exist.
- Solution: Ensure that the path provided is correct and that the file exists at the specified location. If using relative paths, verify they are correctly resolved against the ComfyUI root.
Invalid TRIMESH object
- Explanation: This error indicates that the provided TRIMESH object is not valid or cannot be processed.
- Solution: Check that the TRIMESH object is correctly formatted and contains valid vertex and face data. Consider reloading or reconstructing the TRIMESH object if necessary.
