Ejemplo n.º 1
0
        /// <summary>
        ///   Draws an arrow on the scene
        /// </summary>
        /// <param name = "document"></param>
        /// <param name = "firstPoint"></param>
        /// <param name = "secondPoint"></param>
        /// <param name = "color"></param>
        public static void DrawArrow(Document document, gpPnt firstPoint, gpPnt secondPoint,
                                     TopAbsOrientation color)
        {
            var builder = new NodeBuilder(document, FunctionNames.Arrow);

            builder[0].TransformedPoint3D = new Point3D(firstPoint);
            builder[1].TransformedPoint3D = new Point3D(secondPoint);
            builder[2].Integer            = (int)color;
            builder.Color = Color.Red;
            builder.ExecuteFunction();
        }
        /// <summary>
        ///   Assigns a different color line to different orientations
        /// </summary>
        /// <param name = "orientation"></param>
        /// <returns></returns>
        private static QuantityNameOfColor ColorOrientation(TopAbsOrientation orientation)
        {
            switch (orientation)
            {
            case TopAbsOrientation.TopAbs_FORWARD:
                return(QuantityNameOfColor.Quantity_NOC_RED);

            case TopAbsOrientation.TopAbs_REVERSED:
                return(QuantityNameOfColor.Quantity_NOC_BLUE1);

            case TopAbsOrientation.TopAbs_EXTERNAL:
                return(QuantityNameOfColor.Quantity_NOC_ROSYBROWN);

            case TopAbsOrientation.TopAbs_INTERNAL:
                return(QuantityNameOfColor.Quantity_NOC_ORANGE);
            }

            return(QuantityNameOfColor.Quantity_NOC_RED);
        }
 public void BoundaryTransition(TopAbsOrientation BTr)
 {
     HLRAlgo_Interference_BoundaryTransition69EAD1AB(Instance, (int)BTr);
 }
 public void Transition(TopAbsOrientation Tr)
 {
     HLRAlgo_Interference_Transition69EAD1AB(Instance, (int)Tr);
 }
 public void Orientation(TopAbsOrientation O)
 {
     HLRAlgo_Interference_Orientation69EAD1AB(Instance, (int)O);
 }
 public HLRAlgoInterference(HLRAlgoIntersection Inters, HLRAlgoCoincidence Bound, TopAbsOrientation Orient, TopAbsOrientation Trans, TopAbsOrientation BTrans)
     :
     base(HLRAlgo_Interference_Ctor43D8FA96(Inters.Instance, Bound.Instance, (int)Orient, (int)Trans, (int)BTrans))
 {
 }
Ejemplo n.º 7
0
 public TopoDSShape Oriented(TopAbsOrientation Or)
 {
     return(new TopoDSShape(TopoDS_Shape_Oriented69EAD1AB(Instance, (int)Or)));
 }
Ejemplo n.º 8
0
 public void Orientation(TopAbsOrientation Orient)
 {
     TopoDS_Shape_Orientation69EAD1AB(Instance, (int)Orient);
 }
Ejemplo n.º 9
0
 public TopoDSShape Composed(TopAbsOrientation Orient)
 {
     return(new TopoDSShape(TopoDS_Shape_Composed69EAD1AB(Instance, (int)Orient)));
 }
Ejemplo n.º 10
0
 public void Compose(TopAbsOrientation Orient)
 {
     TopoDS_Shape_Compose69EAD1AB(Instance, (int)Orient);
 }
 public void SetArc(double Tol, TopoDSEdge A, double Param, TopAbsOrientation TArc)
 {
     ChFiDS_CommonPoint_SetArc65E3D459(Instance, Tol, A.Instance, Param, (int)TArc);
 }
Ejemplo n.º 12
0
 public void Orientation(TopAbsOrientation Ori)
 {
     HLRAlgo_Intersection_Orientation69EAD1AB(Instance, (int)Ori);
 }
Ejemplo n.º 13
0
 public HLRAlgoIntersection(TopAbsOrientation Ori, int Lev, int SegInd, int Ind, double P, double Tol, TopAbsState S)
     :
     base(HLRAlgo_Intersection_CtorFF238ADF((int)Ori, Lev, SegInd, Ind, P, Tol, (int)S))
 {
 }