VLFLinsertFacetPoints

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-12, Last change: 2025-09-14

This fnct retesselates all surfaces of a solid by inserting points into existing facets

Description

This function is an elementary part of SGbool1-SGbool3 and was isolated for SGbool4 in 2017-08-02
It is not enough just to add the points to a triangle but also it is necessary to add edges inside of the facet for each cutting edge! Otherwise it is not possible to reconnect the two separated handled Solids!
The final result are THREE retesselate facet list: NFL and SFL and UFL
The orientation of the faces of SFL are changed.

See Also: SGintersectFacetPoints , crossingfacets2VLFL , cross2F , intersectstriangle

Example Illustration

 missing image of VLFLinsertFacetPoints(VLA,FLA,NPL)

Syntax

[XVL,XFIL,NFL,SFL,UFL]=VLFLinsertFacetPoints(VLA,FLA,NPL)

Input Parameter

VLA: Solid A
FLA: Solid B
NPL: New Point List created by SGintersectFacetPoints

Output Parameter

XVL: Original point list plus additional points
XFIL: Facet index list of original facets that were changed
NFL: Facets that belong completely to crossing points (red)
SFL: Facets that connect untouched points and crossing points (yellow)
UFL: Facets that are not touched (green)

Examples


A=SGbox([30,20,10]); B=SGtransP(A,[1 2 3]); SGintersectFacetPoints(A,B); NPL=ans
A=SGbox([30,20,10]); B=SGofCPLz([PLcircle(4);NaN NaN;PLcircle(2)],10);SGintersectFacetPoints(A,B); NPL=ans
VLFLinsertFacetPoints(A.VL,A.FL,NPL)
VLFLinsertFacetPoints(B.VL,B.FL,NPL(:,[2 1 3:end]))




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