]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #353 constraint on 2 segments from not acive sketches
authornds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 13:12:11 +0000 (16:12 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 27 Feb 2015 13:12:11 +0000 (16:12 +0300)
A sketch shape validator for parallel/perpendicular constraints.

src/SketchPlugin/plugin-Sketch.xml

index 2300c7a307a897c52fc0f8cc54dac1aeb8ded959..753b225bedf073a8fd518c3f56598257c86b4c41 100644 (file)
@@ -51,6 +51,7 @@
               label="First object"
               tooltip="Select point, line end point, line, center of circle or arc."
               shape_types="edge vertex">
+          <validator id="SketchPlugin_ShapeValidator" parameters="ConstraintEntityB"/>
           <selection_filter id="MultiFilter" parameters="line,vertex"/>
         </sketch_shape_selector>/>
         <sketch_shape_selector 
           label="Last object" 
           tooltip="Select point, line end point, line, center of circle or arc." 
                 shape_types="edge vertex">
-            <validator id="SketchPlugin_DifferentObjects"/>
-      <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
-      <selection_filter id="MultiFilter" parameters="line,vertex"/>
+          <validator id="SketchPlugin_DifferentObjects"/>
+          <validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
+          <validator id="SketchPlugin_ShapeValidator" parameters="ConstraintEntityB"/>
+          <selection_filter id="MultiFilter" parameters="line,vertex"/>
     </sketch_shape_selector>
         
         <sketch-2dpoint_selector id="ConstraintFlyoutValuePnt"  default="computed" internal="1" obligatory="0"/>