PCofVL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VL/Vertices/PC/Clouds
Introduced first in SolidGeometry 4.3, Creation date: 2018-10-02, Last change: 2025-09-14

returns a points cloud including NL from Vertex List



See Also: PCofVL , PCplot , PCfindplanes

Example Illustration

 missing image of PCofVL(VL)

Syntax

pc=PCofVL(VL)

Input Parameter

VL: Vertex list

Output Parameter

pc: point cloud including normals

Examples


loadweb ('AAruffo_surf.mat'); pc=PCofVL(SG1.VL);




Copyright 2018-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This algorithm is a MATLAB function named PCofVL that converts a vertex list into a point cloud with normals. It is part of the SolidGeometry library and was introduced in version 4.3.

Input Parameters

Output Results

Algorithm Steps

  1. Create a point cloud object from the vertex list VL using the pointCloud function.
  2. Calculate the normals for the point cloud using the pcnormals function with a neighborhood size of 6.
  3. If no output is requested (i.e., nargout == 0), perform the following actions:
    • Create a new figure using SGfigure.
    • Set the view angle to (-30, 30) using the view function.
    • Plot the locations of the point cloud in red using the VLplot function.

The function is designed to be used with other functions in the SolidGeometry library, such as PCplot and PCfindplanes.

Algorithm explaination created using ChatGPT on 2025-08-18 22:30. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21