From 2bc871c153d8d450cc2898fb96cf5a4e7b388f66 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Mon, 14 Dec 2009 14:19:23 +0000 Subject: [PATCH] small notes to the extrude functions --- src/fgt/filter_shape/extrude.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fgt/filter_shape/extrude.h b/src/fgt/filter_shape/extrude.h index 348561335..a95e2429d 100644 --- a/src/fgt/filter_shape/extrude.h +++ b/src/fgt/filter_shape/extrude.h @@ -5,9 +5,13 @@ class Extrude{ //Core functions: void SelectedFaces(MeshType & in, ScalarType offset); - void FromProfileAndPath(vector &profileVec, vector &pathPointVec, vector &pathFrameVec); + +// Generate an extruded profile starting from a profile, a path and a set of rotations. +// We assume that the profile is centered around the origin and lie on the XY plane. +// the pathFrameVec encodes the rotations that have to be applied to the profile at each step encoded as eulerian angles. +void FromProfileAndPath(vector &profileVec, vector &pathPointVec, vector &pathFrameVec, vector &scaleVec); // High level funcs - void TubeFromPath(vector &profileVec, int profileSize); + void TubeFromPath(vector &pathPointVec, int profileSize); }