private SpiceObject CreatePointParameter(ParseTreeNodeEvaluationValues nt) { var values = nt.GetSpiceObject <PointValues>(1); var pointParameter = new PointParameter(values, new SpiceLineInfo(nt)); return(pointParameter); }
public NewCuboid() { FeatureCurves = ArrayUtils.Generate <EnhancedPrimitiveCurve>(12); SilhouetteCurves = ArrayUtils.Generate <PrimitiveCurve>(0); //The Center of the Cube Center = new PointParameter(); //The <H, W, D> is the orthonomal system alligned to the Height Width and Depth of the Cuboid // H = new VectorParameter(); W = new VectorParameter(); D = new VectorParameter(); Height = new ValueParameter(); Width = new ValueParameter(); Depth = new ValueParameter(); RegisterParameter(() => Center); RegisterParameter(() => H); RegisterParameter(() => W); RegisterParameter(() => D); RegisterParameter(() => Height); RegisterParameter(() => Width); RegisterParameter(() => Depth); ActiveCubicCorner = -1; }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(BasisCurve != null ? BasisCurve.ToStepValue() : "$"); parameters.Add(PointParameter != null ? PointParameter.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
internal GenerationLocationValues() { EffectsRotation = new Value.Boolean(false); Type = new Value.Enum <ParameterType>(); Point = new PointParameter(); Sphere = new SphereParameter(); Model = new ModelParameter(); Circle = new CircleParameter(); }
internal GenerationLocationValues() { EffectsRotation = new Value.Boolean(false); Type = new Value.Enum<ParameterType>(); Point = new PointParameter(); Sphere = new SphereParameter(); Model = new ModelParameter(); Circle = new CircleParameter(); }
public NewSphere() { FeatureCurves = new PrimitiveCurve[0]; SilhouetteCurves = ArrayUtils.Generate <PrimitiveCurve>(1); Center = new PointParameter(); Radius = new ValueParameter(); RegisterParameter(() => Center); RegisterParameter(() => Radius); }
public NewCylindricalPrimitive() { FeatureCurves = ArrayUtils.Generate <PrimitiveCurve>(2); SilhouetteCurves = ArrayUtils.Generate <PrimitiveCurve>(2); Center = new PointParameter(); Axis = new VectorParameter(); Length = new ValueParameter(); RegisterParameter(() => Center); RegisterParameter(() => Axis); RegisterParameter(() => Length); }