示例#1
0
 private Model3DGroup CreateGeometry(bool isFinal)
 {
     return(ConverterEnergyToFuelDesign.CreateGeometry(this.MaterialBrushes, this.SelectionEmissives,
                                                       GetTransformForGeometry(isFinal),
                                                       WorldColors.ConverterBase_Color, WorldColors.ConverterBase_Specular, WorldColors.ConverterPlasma_Color, WorldColors.ConverterPlasma_Specular,
                                                       isFinal));
 }
示例#2
0
        public override UtilityNewt.IObjectMassBreakdown GetMassBreakdown(double cellSize)
        {
            if (_massBreakdown != null && _massBreakdown.Scale == Scale && _massBreakdown.CellSize == cellSize)
            {
                // This has already been built for this size
                return(_massBreakdown.Breakdown);
            }

            var breakdown = ConverterEnergyToFuelDesign.GetMassBreakdown(this.Scale, cellSize);

            // Store this
            _massBreakdown = new MassBreakdownCache(breakdown, Scale, cellSize);

            return(_massBreakdown.Breakdown);
        }
示例#3
0
 public override CollisionHull CreateCollisionHull(WorldBase world)
 {
     return(ConverterEnergyToFuelDesign.CreateCollisionHull(world, this.Scale, this.Orientation, this.Position));
 }