UNPKG

@threepipe/plugin-svg-renderer

Version:

Plugins for SVG Rendering of 3d objects for Threepipe

31 lines (26 loc) 681 B
/* * Author: Axel Antoine * mail: ax.antoine@gmail.com * website: http://axantoine.com * Created on Fri Nov 04 2022 * * Loki, Inria project-team with Université de Lille * within the Joint Research Unit UMR 9189 * CNRS - Centrale Lille - Université de Lille, CRIStAL * https://loki.lille.inria.fr * * Licence: Licence.md */ import { Face } from "../core/Face"; import { HalfedgeDS } from "../core/HalfedgeDS"; export function removeFace( struct: HalfedgeDS, face: Face) { if (!struct.faces.remove(face)) { return; } // Remove face ref from halfedges loop for (const halfedge of face.halfedge.nextLoop()) { halfedge.face = null; } }