Brep Transform Component Scale Strange Surface

Hi,
when transforming a Brep component (non uniform scale of the round cap) i get a strange surface…
What am i missing?

                Vector3d scaleVec = new Vector3d(0, 0, 1);
                var scalePlane = new Plane(pt0, scaleVec);
                var capScale = Transform.Scale(scalePlane, 1.0, 1.0, capHight);
                List<ComponentIndex> coInt = new List<ComponentIndex>();
                ComponentIndex coBrep = cylBrep3.Faces[1].ComponentIndex();
                coInt.Add(coBrep);
                cylBrep3.TransformComponent(coInt, capScale, tolerance,1.0,true);

BrepCompScale

Hi @seppeldue,

Can you provide some sample code that isn’t working for you?

– Dale

Hi @dale
thanks for looking at this :slight_smile: !
FJProngsCommand.cs (9.6 KB)