Beispiel #1
0
        internal new static RectangleSection Factory(
            ApiCSiApplication app, 
            Materials.Materials material,
            string uniqueName)
        {
            RectangleSection frameSection = new RectangleSection(app, material, uniqueName);
            frameSection.FillData();

            return frameSection;
        }
        /// <summary>
        /// Factories the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="material">The material.</param>
        /// <param name="uniqueName">Name of the unique.</param>
        /// <param name="properties">The properties.</param>
        /// <returns>RectangleSection.</returns>
        internal static RectangleSection Factory(
            ApiCSiApplication app,
            Materials.Materials material,
            string uniqueName,
            RectangleSectionProperties properties = null)
        {
            RectangleSection frameSection = new RectangleSection(app, material, uniqueName)
            {
                _sectionProperties = properties
            };

            if (properties == null)
            {
                frameSection.FillData();
            }

            return(frameSection);
        }