Pharma Creme Jar Shape

The creme jar shape has these options:

  • Diameter - the diameter of the jar
  • Height - the total height of the jar
  • Label height - the height of the label

The “Fit to images” feature allows you to adjust the size automatically. Boxshot computes the size using the label image. If the total height is not enough to fit the label, Boxshot increases the height.


Here’s how to create the “Pharma creme jar” shape:

var m = scene.root.addMesh("creme jar", "generator.pharma.CremeJar");
var g = m.generator;
g.diameter = 10;
g.height = 20;
g.labelHeight = 5;

// or you can fit the shape to images