VLFLsurface2

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analyzing function
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-19, Last change: 2025-09-14

returns a vertex index list of all vertices that belong to the same surface

Description

Much slower than VLFLsurface. In addition it calculates the normal vector of each vertex of the surface as mean of the normal vector of the linked facets. For a given vertex list and a give facet list and a given vertex as vector that is part of VL or as index of VL, this procedure returns the facet list of the surface and a vertex index list of the surface.

Example Illustration

 missing image of VLFLsurface2(VL,FL,V)

Syntax

[SFL,VIL,VNV]=VLFLsurface2(VL,FL,V)

Input Parameter

VL: Complete vertex list
FL: Complete facet list
V: One vertex that is part of the surface v is element of VL

Output Parameter

SFL: Surface facet list
VIL: Vertex index list
VNV: Vertex normal vector list

Examples

Processing a STL object;
[VL,FL]=VLFLreadSTL ('TEST-BIN3'); VLFLplot (VL,FL);
[SFL,VIL,n]=VLFLsurface (VL,FL,5)




Copyright 2012-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

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