Exemplo n.º 1
0
 /// <summary>
 /// 生成模型环境中的装配实体
 /// </summary>
 /// <returns></returns>
 public TidSolidBody CreateAssembleBoltSolid(CoordSystem cs)
 {
     if (cs == null || cs.Equals(acs))
     {
         cs = acs.Clone();
     }
     return(bolt.Solid.CloneToACS(cs));
 }
Exemplo n.º 2
0
        public CoordSystem Clone()
        {
            CoordSystem cs = new CoordSystem();

            cs.origin.Set(origin.x, origin.y, origin.z);
            cs.axisX.Set(axisX.x, axisX.y, axisX.z);
            cs.axisY.Set(axisY.x, axisY.y, axisY.z);
            cs.axisZ.Set(axisZ.x, axisZ.y, axisZ.z);
            return(cs);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 转换至装配坐标系下的实体
 /// </summary>
 /// <param name="cs">螺栓实体装配坐标系</param>
 /// <returns></returns>
 public TidSolidBody TransToAssembleBoltNut(CoordSystem cs)
 {
     if (cs == null || cs.Equals(acs))
     {
         cs = acs.Clone();
     }
     cs.origin.x += thicknessThrough * cs.axisZ.x;
     cs.origin.y += thicknessThrough * cs.axisZ.y;
     cs.origin.z += thicknessThrough * cs.axisZ.z;
     return(bolt.NutSolid.CloneToACS(cs));
 }