Exemple #1
0
        public static Electrode GetElectrode(Snap.NX.Body body)
        {
            Electrode result = null;

            Snap.NX.Face baseFace     = null;
            var          diagonalLine = GetDiagonalLine(body, out baseFace);

            if (diagonalLine != null)
            {
                var faceDirection = baseFace.GetFaceDirection();
                var model         = new JYElectrode();
                model.DiagonalLine = diagonalLine;
                model.BaseFace     = baseFace;
                model.ElecBody     = body;
                result             = model;
            }
            return(result);
        }
Exemple #2
0
        public static Electrode GetElectrode(Snap.NX.Body body)
        {
            Electrode result = null;

            result = XKElectrode.GetElectrode(body);
            if (result == null)
            {
                result = UPElectrode.GetElectrode(body);
            }
            if (result == null)
            {
                result = JYElectrode.GetElectrode(body);
            }
            if (result == null)
            {
                result = EactElectrode.GetElectrode(body);
            }
            return(result);
        }