Example #1
0
        //--------------------------------------------------------------------------------------------------

        protected virtual bool MakeInternal(MakeFlags flags)
        {
            if (BRep != null)
            {
                if (!flags.HasFlag(MakeFlags.NoTransformation))
                {
                    TransformedBRep = BRep.Moved(new TopLoc_Location(GetTransformation()));
                }
                return(true);
            }
            return(false);
        }
        //--------------------------------------------------------------------------------------------------

        protected override bool MakeInternal(MakeFlags flags)
        {
            ClearSubshapeLists();

            // Make it!
            var context = new MakeContext
            {
                DebugOutput = flags.HasFlag(MakeFlags.DebugOutput)
            };

            if (!(_InitContext(context) &&
                  _AnalyzeTopology(context)))
            {
                return(false);
            }

            // Skip if we have only one section
            if (!context.RootSection.Children.Any())
            {
                return(Skip());
            }

            if (!_BuildResultShape(context))
            {
                return(false);
            }

            if (context.ResultShape == null)
            {
                return(Skip());
            }

            BRep = context.ResultShape;

            return(base.MakeInternal(flags));
        }