2 Copyright (C) 2014-2017 CEA/DEN, EDF R&D
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
23 <toolbox id="creation_method">
26 tooltip="Point at a given distance from the origin."
27 icon="icons/Construction/point_by_xyz_32x32.png">
28 <point_input id="point3d" default="0;0;0"/>
30 <box id="by_distance_on_edge"
31 title="By distance on edge"
32 tooltip="Point on an edge, at a given distance of one of its end."
33 icon="icons/Construction/point_by_distance_on_edge_32x32.png">
34 <shape_selector id="edge"
36 tooltip="Edge for creating point on it."
37 icon="icons/Construction/edge.png"
39 <validator id="GeomValidators_Finite"/>
41 <radiobox id="offset_type">
42 <radio id="offset_type_by_distance"
43 title="Distance on edge by value"
44 tooltip="Point on an edge, at a given distance specified by value."
45 icon="icons/Construction/point_by_distance_on_edge_24x24.png">
46 <doublevalue id="distance"
48 tooltip="Distance value."
53 <radio id="offset_type_by_ratio"
54 title="Distance on edge by ratio"
55 tooltip="Point on an edge, at a given distance specified by ratio."
56 icon="icons/Construction/point_by_ratio_on_edge_24x24.png">
57 <doublevalue id="ratio"
59 tooltip="Ratio value."
67 <boolvalue id="reverse"
69 tooltip="Distance from edge end point."
72 <box id="by_projection"
73 title="By projection on edge or plane"
74 tooltip="Point on edge or plane by projection selected point."
75 icon="icons/Construction/point_by_projection_32x32.png">
76 <shape_selector id="point_to_project"
78 tooltip="Point for projection."
79 icon="icons/Construction/point.png"
82 <toolbox id="projection_type">
83 <box id="projection_type_on_edge"
84 title="By projection on edge"
85 tooltip="Point on edge by projection selected point."
86 icon="icons/Construction/point_by_projection_on_edge_24x24.png">
87 <shape_selector id="edge_for_point_projection"
89 tooltip="Edge for projection."
90 icon="icons/Construction/edge.png"
94 <box id="projection_type_on_face"
95 title="By projection on face"
96 tooltip="Point on face surface by projection selected point."
97 icon="icons/Construction/point_by_projection_on_face_24x24.png">
98 <shape_selector id="face_for_point_projection"
100 tooltip="Face for projection."
101 icon="icons/Construction/face.png"
103 <validator id="GeomValidators_Face" parameters="plane"/>
108 <box id="by_intersection"
109 title="By intersection of objects"
110 tooltip="Point on intersection of different objects."
111 icon="icons/Construction/point_by_intersection_32x32.png">
112 <toolbox id="intersection_type">
113 <box id="intersection_type_by_lines"
114 title="By two lines intersection"
115 tooltip="Point by intersection of two coplanar lines."
116 icon="icons/Construction/point_by_lines_intersection_24x24.png">
117 <shape_selector id="intersection_line_1"
119 tooltip="First line."
120 icon="icons/Construction/edge.png"
122 <validator id="GeomValidators_ShapeType" parameters="line"/>
123 <validator id="ConstructionPlugin_ValidatorPointLines"
124 parameters="intersection_line_2"/>
126 <shape_selector id="intersection_line_2"
128 tooltip="Second line."
129 icon="icons/Construction/edge.png"
131 <validator id="GeomValidators_ShapeType" parameters="line"/>
132 <validator id="ConstructionPlugin_ValidatorPointLines"
133 parameters="intersection_line_1"/>
136 <box id="intersection_type_by_line_and_plane"
137 title="By line and plane intersection"
138 tooltip="Point by intersection of line and plane."
139 icon="icons/Construction/point_by_line_and_plane_intersection_24x24.png">
140 <shape_selector id="intersection_line"
142 tooltip="Line for intersection."
143 icon="icons/Construction/edge.png"
145 geometrical_selection="true">
146 <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
147 parameters="intersection_plane"/>
149 <shape_selector id="intersection_plane"
151 tooltip="Plane for intersection."
152 icon="icons/Construction/face.png"
154 geometrical_selection="true">
155 <validator id="GeomValidators_Face" parameters="plane"/>
156 <validator id="ConstructionPlugin_ValidatorPointEdgeAndPlaneNotParallel"
157 parameters="intersection_line"/>
159 <optionalbox id="use_offset" title="Offset from the plane">
160 <doublevalue id="offset"
162 tooltip="Distance from the plane"
165 <boolvalue id="reverse_offset"
167 tooltip="Reverse offset value"
171 <box id="intersection_type_by_planes"
172 title="By three planes intersection"
173 tooltip="Point by intersection of three planes."
174 icon="icons/Construction/point_by_planes_intersection_24x24.png">
175 <shape_selector id="intersection_plane_1"
177 tooltip="Select a planar face."
178 icon="icons/Construction/face.png"
180 <validator id="GeomValidators_Face" parameters="plane"/>
181 <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
182 parameters="intersection_plane_2, intersection_plane_3"/>
184 <shape_selector id="intersection_plane_2"
186 tooltip="Select a planar face."
187 icon="icons/Construction/face.png"
189 <validator id="GeomValidators_Face" parameters="plane"/>
190 <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
191 parameters="intersection_plane_1, intersection_plane_3"/>
193 <shape_selector id="intersection_plane_3"
195 tooltip="Select a planar face."
196 icon="icons/Construction/face.png"
198 <validator id="GeomValidators_Face" parameters="plane"/>
199 <validator id="ConstructionPlugin_ValidatorPointThreeNonParallelPlanes"
200 parameters="intersection_plane_1, intersection_plane_2"/>
205 <box id="by_geometrical_property"
206 title="By geometrical property of object"
207 tooltip="Point by center of gravity or center of circle."
208 icon="icons/Construction/point_by_geometrical_property_32x32.png">
209 <toolbox id="geometrical_property_type">
210 <box id="geometrical_property_type_by_center_of_gravity"
211 title="By center of gravity"
212 tooltip="Point by center of gravity."
213 icon="icons/Construction/point_by_center_of_gravity_24x24.png">
214 <shape_selector id="object_for_center_of_gravity"
216 tooltip="Object for center of gravity."
217 icon="icons/Construction/shapes.png"
218 shape_types="vertices edges wires faces shells solids compsolids compounds">
219 <validator id="GeomValidators_Finite"/>
222 <box id="geometrical_property_type_by_center_of_circle"
223 title="By center of circle"
224 tooltip="Point by center of circle."
225 icon="icons/Construction/point_by_center_of_circle_24x24.png">
226 <shape_selector id="object_for_center_of_circle"
228 tooltip="Object for center of circle."
229 icon="icons/Construction/edge.png"
231 <validator id="GeomValidators_ShapeType" parameters="circle"/>