상속: IfcGeometricSet
예제 #1
0
        private void setShapeRep(List <IfcGridAxis> axis)
        {
            if (axis == null || axis.Count == 0)
            {
                return;
            }
            IfcProductDefinitionShape pds = Representation as IfcProductDefinitionShape;

            if (pds == null)
            {
                Representation = new IfcProductDefinitionShape(new IfcShapeRepresentation(new IfcGeometricCurveSet(axis.ConvertAll(x => (IfcGeometricSetSelect)x.AxisCurve))));
            }
            else
            {
                foreach (IfcShapeModel sm in pds.Representations)
                {
                    IfcShapeRepresentation sr = sm as IfcShapeRepresentation;
                    if (sr != null)
                    {
                        foreach (IfcRepresentationItem gri in sr.Items)
                        {
                            IfcGeometricCurveSet curveSet = gri as IfcGeometricCurveSet;
                            if (curveSet != null)
                            {
                                curveSet.addElements(axis.ConvertAll(x => (IfcGeometricSetSelect)x.AxisCurve));
                                return;
                            }
                        }
                    }
                }
            }
        }
예제 #2
0
        private void removeExistingFromShapeRep(List <IfcGridAxis> axis)
        {
            if (axis == null || axis.Count == 0)
            {
                return;
            }
            IfcProductDefinitionShape pds = Representation as IfcProductDefinitionShape;

            if (pds != null)
            {
                foreach (IfcShapeModel sm in pds.Representations)
                {
                    IfcShapeRepresentation sr = sm as IfcShapeRepresentation;
                    if (sr != null)
                    {
                        foreach (IfcRepresentationItem gri in sr.Items)
                        {
                            IfcGeometricCurveSet curveSet = gri as IfcGeometricCurveSet;
                            if (curveSet != null)
                            {
                                axis.ForEach(x => curveSet.Elements.Remove(x.AxisCurve));
                            }
                        }
                    }
                }
            }
        }
예제 #3
0
        private void setShapeRep(List <IfcGridAxis> axis)
        {
            if (axis == null || axis.Count == 0)
            {
                return;
            }
            IfcProductDefinitionShape pds = Representation as IfcProductDefinitionShape;

            if (pds == null)
            {
                List <IfcGeometricSetSelect> set = new List <IfcGeometricSetSelect>();
                foreach (IfcGridAxis a in axis)
                {
                    IfcCurve c = a.AxisCurve;
                    if (c != null)
                    {
                        set.Add(c);
                    }
                }
                if (set.Count > 0)
                {
                    Representation = new IfcProductDefinitionShape(new IfcShapeRepresentation(mDatabase.Factory.SubContext(IfcGeometricRepresentationSubContext.SubContextIdentifier.FootPrint), new IfcGeometricCurveSet(set), ShapeRepresentationType.GeometricCurveSet));
                }
            }
            else
            {
                foreach (IfcShapeModel sm in pds.Representations)
                {
                    IfcShapeRepresentation sr = sm as IfcShapeRepresentation;
                    if (sr != null)
                    {
                        foreach (IfcRepresentationItem gri in sr.Items)
                        {
                            IfcGeometricCurveSet curveSet = gri as IfcGeometricCurveSet;
                            if (curveSet != null)
                            {
                                foreach (IfcGridAxis a in axis)
                                {
                                    IfcCurve c = a.AxisCurve;
                                    if (c != null && !curveSet.Elements.Contains(c))
                                    {
                                        curveSet.Elements.Add(c);
                                    }
                                }
                                return;
                            }
                        }
                    }
                }
            }
        }
예제 #4
0
 internal IfcGeometricCurveSet(DatabaseIfc db, IfcGeometricCurveSet s, DuplicateOptions options) : base(db, s, options)
 {
 }
예제 #5
0
파일: IFC G.cs 프로젝트: jenca-cloud/ggIFC
		internal new static IfcGeometricCurveSet Parse(string strDef) { IfcGeometricCurveSet s = new IfcGeometricCurveSet(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }
예제 #6
0
파일: IFC G.cs 프로젝트: jenca-cloud/ggIFC
		internal static void parseFields(IfcGeometricCurveSet s, List<string> arrFields, ref int ipos) { IfcGeometricSet.parseFields(s, arrFields, ref ipos); }
예제 #7
0
파일: IFC G.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcGeometricCurveSet(IfcGeometricCurveSet p) : base(p) { }
예제 #8
0
 internal new static IfcGeometricCurveSet Parse(string strDef)
 {
     IfcGeometricCurveSet s = new IfcGeometricCurveSet(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return(s);
 }
예제 #9
0
 internal static void parseFields(IfcGeometricCurveSet s, List <string> arrFields, ref int ipos)
 {
     IfcGeometricSet.parseFields(s, arrFields, ref ipos);
 }
예제 #10
0
 internal IfcGeometricCurveSet(DatabaseIfc db, IfcGeometricCurveSet s) : base(db, s)
 {
 }
예제 #11
0
 internal IfcGeometricCurveSet(IfcGeometricCurveSet p) : base(p)
 {
 }
예제 #12
0
 internal new static IfcGeometricCurveSet Parse(string str)
 {
     IfcGeometricCurveSet s = new IfcGeometricCurveSet(); s.parse(str); return(s);
 }
예제 #13
0
 internal static new IfcGeometricCurveSet Parse(string str)
 {
     IfcGeometricCurveSet s = new IfcGeometricCurveSet(); s.parse(str); return s;
 }
예제 #14
0
 internal IfcGeometricCurveSet(DatabaseIfc db, IfcGeometricCurveSet s)
     : base(db,s)
 {
 }
예제 #15
0
파일: IFC S.cs 프로젝트: jenca-cloud/ggIFC
		internal static IfcShapeRepresentation getRowRep(DatabaseIfc m, IfcGeometricCurveSet cs) { return new IfcShapeRepresentation(cs) { RepresentationIdentifier = "Row", RepresentationType = "GeometricCurveSet" }; }