GeometryGym.Ifc.IfcGrid.setShapeRep C# (CSharp) Méthode

setShapeRep() private méthode

private setShapeRep ( List axis ) : void
axis List
Résultat void
        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;
                            }
                        }
                    }
                }
            }
        }

Same methods

IfcGrid::setShapeRep ( IfcGridAxis a ) : void