/// <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)) { }
public TopoDSShape Oriented(TopAbsOrientation Or) { return(new TopoDSShape(TopoDS_Shape_Oriented69EAD1AB(Instance, (int)Or))); }
public void Orientation(TopAbsOrientation Orient) { TopoDS_Shape_Orientation69EAD1AB(Instance, (int)Orient); }
public TopoDSShape Composed(TopAbsOrientation Orient) { return(new TopoDSShape(TopoDS_Shape_Composed69EAD1AB(Instance, (int)Orient))); }
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); }
public void Orientation(TopAbsOrientation Ori) { HLRAlgo_Intersection_Orientation69EAD1AB(Instance, (int)Ori); }
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)) { }