コード例 #1
0
        private SpiceObject CreatePointParameter(ParseTreeNodeEvaluationValues nt)
        {
            var values         = nt.GetSpiceObject <PointValues>(1);
            var pointParameter = new PointParameter(values, new SpiceLineInfo(nt));

            return(pointParameter);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: IfcPointOnCurve.g.cs プロジェクト: vdubya/IFC-gen
        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()));
        }
コード例 #4
0
 internal GenerationLocationValues()
 {
     EffectsRotation = new Value.Boolean(false);
     Type            = new Value.Enum <ParameterType>();
     Point           = new PointParameter();
     Sphere          = new SphereParameter();
     Model           = new ModelParameter();
     Circle          = new CircleParameter();
 }
コード例 #5
0
 internal GenerationLocationValues()
 {
     EffectsRotation = new Value.Boolean(false);
     Type = new Value.Enum<ParameterType>();
     Point = new PointParameter();
     Sphere = new SphereParameter();
     Model = new ModelParameter();
     Circle = new CircleParameter();
 }
コード例 #6
0
        public NewSphere()
        {
            FeatureCurves    = new PrimitiveCurve[0];
            SilhouetteCurves = ArrayUtils.Generate <PrimitiveCurve>(1);

            Center = new PointParameter();
            Radius = new ValueParameter();

            RegisterParameter(() => Center);
            RegisterParameter(() => Radius);
        }
コード例 #7
0
        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);
        }