Nodes/comfyui_cv/CV Merge Point Clouds
ComfyUI Node

CV Merge Point Clouds

Concatenates two Nx3 point clouds and their per-vertex colours in lockstep, so a multi-view reconstruction can go to one 'CV Write PLY'. Both clouds must already be in the SAME coordinate frame - register one onto the other first ('CV Sample Array At Points' + cv2.estimateAffine3D + 'CV Transform Points 3D'). A missing colour input becomes white for that cloud, and an empty/None cloud simply contributes nothing (that is how a failed registration degrades: you keep cloud A).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Merge Point Clouds
  • points_a
  • points_b
  • colors_a
  • colors_b
  • points
  • colors
  • count_a
  • count_b
Categoryimage/CV/points

Inputs (4)

NameTypeDefaultDescription
points_aNPARRAYFirst Nx3 cloud.
points_boptNPARRAYSecond Nx3 cloud, already transformed into the same frame as points_a. Leave it unconnected and the result is cloud A alone, with count_b = 0 - which is also what lets a SUBGRAPH expose an OPTIONAL cloud: a boundary input may be left unfed only when every inner socket it reaches is optional (prompt validation is static, so one required socket downstream sinks the whole prompt).
colors_aoptNPARRAYNx3 colours for cloud A (white if unconnected).
colors_boptNPARRAYNx3 colours for cloud B (white if unconnected).

Outputs (4)

NameTypeDescription
pointsNPARRAY(Na + Nb) x 3 float32 points, cloud A first.
colorsNPARRAY(Na + Nb) x 3 uint8 colours in the same order.
count_aINT
count_bINT