예제 #1
0
 /// <summary>
 /// Return geometry for a particular representation item.
 /// </summary>
 /// <param name="shapeEditScope">The shape edit scope.</param>
 /// <param name="lcs">Local coordinate system for the geometry, without scale.</param>
 /// <param name="scaledLcs">Local coordinate system for the geometry, including scale, potentially non-uniform.</param>
 /// <param name="guid">The guid of an element for which represntation is being created.</param>
 /// <returns>Zero or more created geometries.</returns>
 public IList <GeometryObject> CreateGeometry(IFCImportShapeEditScope shapeEditScope, Transform lcs, Transform scaledLcs, string guid)
 {
     if (StyledByItem != null)
     {
         StyledByItem.Create(shapeEditScope);
     }
     return(CreateGeometryInternal(shapeEditScope, lcs, scaledLcs, guid));
 }
예제 #2
0
        /// <summary>
        /// Return geometry for a particular representation item.
        /// </summary>
        /// <param name="shapeEditScope">The shape edit scope.</param>
        /// <param name="lcs">Local coordinate system for the geometry, without scale.</param>
        /// <param name="scaledLcs">Local coordinate system for the geometry, including scale, potentially non-uniform.</param>
        /// <param name="guid">The guid of an element for which represntation is being created.</param>
        /// <returns>Zero or more created geometries.</returns>
        public IList <GeometryObject> CreateGeometry(IFCImportShapeEditScope shapeEditScope, Transform lcs, Transform scaledLcs, string guid)
        {
            if (StyledByItem != null)
            {
                StyledByItem.Create(shapeEditScope);
            }

            using (IFCImportShapeEditScope.IFCMaterialStack stack = new IFCImportShapeEditScope.IFCMaterialStack(shapeEditScope, StyledByItem, null))
            {
                return(CreateGeometryInternal(shapeEditScope, lcs, scaledLcs, guid));
            }
        }
예제 #3
0
        /// <summary>
        /// Create geometry for a particular representation item.
        /// </summary>
        /// <param name="shapeEditScope">The geometry creation scope.</param>
        /// <param name="lcs">Local coordinate system for the geometry, without scale.</param>
        /// <param name="scaledLcs">Local coordinate system for the geometry, including scale, potentially non-uniform.</param>
        /// <param name="guid">The guid of an element for which represntation is being created.</param>
        public void CreateShape(IFCImportShapeEditScope shapeEditScope, Transform lcs, Transform scaledLcs, string guid)
        {
            if (StyledByItem != null)
            {
                StyledByItem.Create(shapeEditScope);
            }

            if (LayerAssignment != null)
            {
                LayerAssignment.Create(shapeEditScope);
            }

            using (IFCImportShapeEditScope.IFCMaterialStack stack = new IFCImportShapeEditScope.IFCMaterialStack(shapeEditScope, StyledByItem, LayerAssignment))
            {
                CreateShapeInternal(shapeEditScope, lcs, scaledLcs, guid);
            }
        }