예제 #1
0
 public Horn(double scale)
 {
     Init(new MultExpression(new ConstantExpression(scale), FunctionParser.Parse("-(1+.15u cos(v))cos(u)")),
          new MultExpression(new ConstantExpression(scale), FunctionParser.Parse("(1+.15u cos(v))sin(u)")),
          new MultExpression(new ConstantExpression(scale), FunctionParser.Parse("-.15u sin(v)")),
          -Math.PI / 2.0, 0.0, 0.0, 2 * Math.PI);
 }
예제 #2
0
 public Sphere(double radius)
 {
     Init(new MultExpression(new ConstantExpression(radius), FunctionParser.Parse("cos(u)sin(v)")),
          new MultExpression(new ConstantExpression(radius), FunctionParser.Parse("-cos(v)")),
          new MultExpression(new ConstantExpression(radius), FunctionParser.Parse("sin(-u)sin(v)")),
          -Math.PI, Math.PI, 0.0, Math.PI);
 }
예제 #3
0
 public Ellipsoid(double ax, double by, double cz)
 {
     Init(new MultExpression(new ConstantExpression(ax), FunctionParser.Parse("cos(u)sin(v)")),
          new MultExpression(new ConstantExpression(by), FunctionParser.Parse("-cos(v)")),
          new MultExpression(new ConstantExpression(cz), FunctionParser.Parse("sin(-u)sin(v)")),
          -Math.PI, Math.PI, 0.0, Math.PI);
 }
예제 #4
0
 public FunctionMesh(
     string fx,
     string fy,
     string fz,
     double uMin,
     double uMax,
     double vMin,
     double vMax
     )
 {
     Init(
         FunctionParser.Parse(fx),
         FunctionParser.Parse(fy),
         FunctionParser.Parse(fz),
         uMin,
         uMax,
         vMin,
         vMax
         );
 }
 public FunctionWireframeModel(
     string fx,
     string fy,
     string fz,
     double uMin,
     double uMax,
     double vMin,
     double vMax
     )
 {
     Init(
         FunctionParser.Parse(fx),
         FunctionParser.Parse(fy),
         FunctionParser.Parse(fz),
         uMin,
         uMax,
         vMin,
         vMax
         );
 }