项目

一般

简介

新增功能 #35 » cad_template_test.xml

建模例子输入 - 王 绪伦, 2024-03-17 08:37

 
1
<?xml version="1.0" encoding="utf-8"?>
2
<Compound>
3
  <Parameter>
4
    <Variable name="Radius" value="1" desc="半径" />
5
    <Variable name="Height" value="2" desc="高度" />
6
  </Parameter>
7
  <Datum>
8
  	<CoordSystem id="c0" origin="" z="" x="" ref=""></CoordSystem>
9
  	<DatumPlane id="p0" origin="0,0,0" CS="0" normal="0,0,1" type="XOY"></DatumPlane>
10
  	<DatumAxis id="a0" origin="0,0,0" CS="0" normal="0,0,1" type="X+"></DatumAxis>
11
  </Datum>
12
  <Modeling>
13
	  <Boolean method="Unite">
14
		  	<Cube origin="0,0,0" length="5,Height,5" />
15
		  	<Extrude direction="0,0,2">
16
		  		<Wire>
17
		  			<Line>
18
		  				<Vertex id="V4" coordinate="0,5,0"/>
19
		  				<Vertex id="V1" coordinate="0,0,0"/>
20
		  			</Line>
21
		  			<Line>
22
		  				<Vertex id="V1" coordinate="0,0,0"/>
23
		  				<Vertex id="V2" coordinate="5,0,0"/>
24
		  			</Line>
25
		  			<Line>
26
		  				<Vertex id="V2"/>
27
		  				<Vertex id="V3" coordinate="5,5,0"/>
28
		  			</Line>
29
		  			<Arc method="CVV" datum_plane="XOY" center="2.5,5,0" radius="2.5">
30
		  				<Vertex id="V3"/>
31
		  				<Vertex id="V4"/>
32
		  			</Arc>
33
		  		</Wire>
34
		  		<Wire>
35
		  			<Circle datum_plane="XOY" center="2.5,5,0" radius="Radius" />
36
		  		</Wire>
37
		  	</Extrude>
38
	  </Boolean>
39
  </Modeling>
40
</Compound>
    (1-1/1)