Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        //--------------------------------------------------------------------------------------------------

        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));
        }