/// <summary>
        /// Create an IFCVertexPoint object from a handle of type IfcVertexPoint.
        /// </summary>
        /// <param name="ifcFace">The IFC handle.</param>
        /// <returns>The IFCVertexPoint object.</returns>
        public static IFCVertex ProcessIFCVertexPoint(IFCAnyHandle ifcVertexPoint)
        {
            if (IFCAnyHandleUtil.IsNullOrHasNoValue(ifcVertexPoint))
            {
                Importer.TheLog.LogNullError(IFCEntityType.IfcVertexPoint);
                return null;
            }

            IFCEntity vertexPoint;
            if (!IFCImportFile.TheFile.EntityMap.TryGetValue(ifcVertexPoint.StepId, out vertexPoint))
                vertexPoint = new IFCVertexPoint(ifcVertexPoint);
            return (vertexPoint as IFCVertexPoint);
        }
예제 #2
0
        /// <summary>
        /// Create an IFCVertexPoint object from a handle of type IfcVertexPoint.
        /// </summary>
        /// <param name="ifcFace">The IFC handle.</param>
        /// <returns>The IFCVertexPoint object.</returns>
        public static IFCVertex ProcessIFCVertexPoint(IFCAnyHandle ifcVertexPoint)
        {
            if (IFCAnyHandleUtil.IsNullOrHasNoValue(ifcVertexPoint))
            {
                Importer.TheLog.LogNullError(IFCEntityType.IfcVertexPoint);
                return(null);
            }

            IFCEntity vertexPoint;

            if (!IFCImportFile.TheFile.EntityMap.TryGetValue(ifcVertexPoint.StepId, out vertexPoint))
            {
                vertexPoint = new IFCVertexPoint(ifcVertexPoint);
            }
            return(vertexPoint as IFCVertexPoint);
        }
예제 #3
0
        /// <summary>
        /// Create an IFCVertex object from a handle of type IfcVertex.
        /// </summary>
        /// <param name="ifcFace">The IFC handle.</param>
        /// <returns>The IFCVertex object.</returns>
        public static IFCVertex ProcessIFCVertex(IFCAnyHandle ifcVertex)
        {
            if (IFCAnyHandleUtil.IsNullOrHasNoValue(ifcVertex))
            {
                Importer.TheLog.LogNullError(IFCEntityType.IfcVertex);
                return(null);
            }

            if (IFCAnyHandleUtil.IsValidSubTypeOf(ifcVertex, IFCEntityType.IfcVertexPoint))
            {
                return(IFCVertexPoint.ProcessIFCVertexPoint(ifcVertex));
            }

            IFCEntity vertex;

            if (!IFCImportFile.TheFile.EntityMap.TryGetValue(ifcVertex.StepId, out vertex))
            {
                vertex = new IFCVertex(ifcVertex);
            }
            return(vertex as IFCVertex);
        }