ComfyUI > Nodes > ComfyUI libigl > Subsample Point Cloud

ComfyUI Node: Subsample Point Cloud

Class Name

GeomPackSubsamplePointCloud

Category
geompack/conversion
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI libigl
Latest Updated
2025-12-22
Github Stars
0.06K

How to Install ComfyUI libigl

Install this extension via the ComfyUI Manager by searching for ComfyUI libigl
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI libigl in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Subsample Point Cloud Description

Efficiently reduces point cloud density while preserving colors, normals, and metadata.

Subsample Point Cloud:

The GeomPackSubsamplePointCloud node is designed to efficiently reduce the density of a point cloud while preserving essential attributes such as colors, normals, and metadata. This node is particularly useful when working with large point cloud datasets, as it allows you to maintain a manageable size without losing critical information. By offering multiple subsampling methods, it provides flexibility in how points are selected, ensuring that the resulting point cloud retains its structural integrity and visual fidelity. Whether you need to quickly downsample for performance reasons or require a more uniform distribution of points, this node offers the tools necessary to achieve your goals.

Subsample Point Cloud Input Parameters:

point_cloud

This parameter represents the input point cloud that you wish to subsample. It is expected to be in the TRIMESH format, which is a common format for handling 3D mesh and point cloud data. The point cloud serves as the source from which points will be selectively reduced.

method

The method parameter determines the strategy used for subsampling the point cloud. It offers three options: random, uniform_grid, and farthest_point. The random method provides a fast, random selection of points, suitable for quick downsampling. The uniform_grid method uses a voxel-based approach to ensure uniform spacing between points, which is ideal for maintaining even distribution. The farthest_point method maximizes coverage by selecting points that are farthest apart, though it is slower for large point clouds. The default method is random.

target_count

This parameter specifies the target number of points you wish to retain in the subsampled point cloud. It accepts integer values with a default of 100,000, a minimum of 100, and a maximum of 10,000,000. Adjusting this value allows you to control the density of the resulting point cloud, balancing between detail and performance.

seed

The seed parameter is an optional integer that sets the random seed for reproducible results when using the random method. It ensures that the same set of points is selected each time the node is executed with the same input and parameters. The default value is 42, with a range from 0 to 2,147,483,647.

Subsample Point Cloud Output Parameters:

point_cloud

The output is a subsampled point cloud in the TRIMESH format. This point cloud retains the essential attributes of the original, such as colors and normals, while having a reduced number of points. The output is designed to be more manageable in size, making it suitable for further processing or visualization tasks.

Subsample Point Cloud Usage Tips:

  • Use the random method for quick subsampling when performance is a priority and precise point distribution is not critical.
  • Opt for the uniform_grid method when you need a more evenly distributed point cloud, which can be beneficial for certain analysis or visualization tasks.
  • Choose the farthest_point method if you require maximum coverage and are working with smaller point clouds, as it can be computationally intensive.
  • Adjust the target_count parameter based on your specific needs for detail versus performance, keeping in mind the capabilities of your hardware.

Subsample Point Cloud Common Errors and Solutions:

"Invalid point cloud format"

  • Explanation: The input point cloud is not in the expected TRIMESH format.
  • Solution: Ensure that the input point cloud is correctly formatted as a TRIMESH object before passing it to the node.

"Target count exceeds original point count"

  • Explanation: The specified target_count is greater than the number of points in the original point cloud.
  • Solution: Set the target_count to a value less than or equal to the original point count.

"Unsupported subsampling method"

  • Explanation: An invalid method was specified for the method parameter.
  • Solution: Choose one of the supported methods: random, uniform_grid, or farthest_point.

Subsample Point Cloud Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI libigl
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.