Syntax
pc=PCofVL(VL)
Input Parameter
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
- VL: A vertex list, which is an array of points in 3D space.
Output Results
- pc: A point cloud object that includes normals calculated for each point.
Algorithm Steps
- Create a point cloud object from the vertex list
VL
using the pointCloud
function.
- Calculate the normals for the point cloud using the
pcnormals
function with a neighborhood size of 6.
- 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