/// <summary> /// Initialize the builder that will be used to create the geometry /// </summary> /// <param name="builderType">The type of the builder</param> public BuilderScope InitializeBuilder(IFCShapeBuilderType builderType) { if (BuilderScope != null) { throw new InvalidOperationException("BuilderScope has already been initialized"); } BuilderType = builderType; BuildPreference = BuildPreference; if (builderType == IFCShapeBuilderType.TessellatedShapeBuilder) { BuilderScope = new TessellatedShapeBuilderScope(this); } return(BuilderScope); }
/// <summary> /// Initialize the builder that will be used to create the geometry /// </summary> /// <param name="builderType">The type of the builder</param> public BuilderScope InitializeBuilder(IFCShapeBuilderType builderType) { if (BuilderScope != null) { throw new InvalidOperationException("BuilderScope has already been initialized"); } BuilderType = builderType; BuildPreference = BuildPreference; if (builderType == IFCShapeBuilderType.TessellatedShapeBuilder) { BuilderScope = new TessellatedShapeBuilderScope(this); } return BuilderScope; }