connecting users of the CorelDRAW family of products

Approximating Superellipses

Table of Contents

Page Details

First published by:
Jeff Paciga
on Tue, Aug 17 2010
Last revision by:
Jeff Paciga
on Tue, Nov 23 2010
5 people found this article useful.

CorelDRAW on Facebook

@CorelDRAW on Twitter

CorelDRAW on Google+

Share  

100% of people found this useful
Approximating Superellipses

Superellipses (Lamé curves) can be approximated in CorelDRAW using the B-Spline Tool (introduced in CorelDRAW X5).  The basic idea is that if the b-spline's control polyline (the line connecting the b-spline's control points) is an octagon with alternating side lengths, the resulting b-spline will approximate a superellipse.

The easiest way to accomplish this is to snap the control points to a grid:



The picture above shows a 6x6 grid (I used a graph paper object as a temporary guide, although the normal grid would work). The control points (blue dots) are placed on the verticies of an octagon (shown in blue).  The resulting b-spline, shaded in green, approximates a superellipse.

The roundness of the superellipse can be controlled by varying the lengths of the control octagon's sides:



Another Way
Here is an alternate pattern of control points that approximates a superellipse.  It is convenient because it can be created on a simple rectangle.  Just snap the control points to the verticies (nodes) and midpoints of the rectangle's edges.



Superellipses with n < 2
The above approach works well for superellipses with n > 2.  To approximate superellipses with 0 < n < 1 (e.g., astroids), create a 4-point star with the Star Tool, and place the b-spline's control points on its vertices. The shape ("sharpness") of the star dictates the shape of the resultant b-spline:



In this case, the outer vertices must be clamped (hold v while creating, or select them with the Shape Tool and clamp them in the property bar).

The case where 1 < n < 2 is harder to approximate simply.  Here is an example created on a 17x17 grid.  Note the extra control points added to adjust the curvature of the sides.
:

Recent Comments

By: vedavyas Posted on Sun, Dec 5 2010 8:31

Really good one i am searching for this info from many days.

By: Whiteapple12 Posted on Thu, Jan 27 2011 8:52

Thanks for posting! Your job won't be left unnoticed and unappreciated. It helps me understand much in this sphere. I like the intelligible way you present information so that it became comprehensible, transparent and accessible for ordinary people as I am. Well done! <a href=http://www.google.com>">http://www.google.com> http://www.google.com </a>

By: pigmatic Posted on Fri, Feb 8 2013 5:36

Needed those eclipses for my new logo, thanks for sharing this!

http://economydentures.org

© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.