+ Give example for discretize() matching the shape type
This commit is contained in:
parent
9ed61f107b
commit
ee2e7fc3fa
|
@ -90,14 +90,13 @@ then the behaviour is as if using the keyword 'Distance'.
|
|||
Example:
|
||||
|
||||
import Part
|
||||
c=Part.Circle()
|
||||
c.Radius=5
|
||||
p=c.discretize(Number=50,First=3.14)
|
||||
e=Part.makeCircle(5)
|
||||
p=e.discretize(Number=50,First=3.14)
|
||||
s=Part.Compound([Part.Vertex(i) for i in p])
|
||||
Part.show(s)
|
||||
|
||||
|
||||
p=c.discretize(Angular=0.09,Curvature=0.01,Last=3.14,Minimum=100)
|
||||
p=e.discretize(Angular=0.09,Curvature=0.01,Last=3.14,Minimum=100)
|
||||
s=Part.Compound([Part.Vertex(i) for i in p])
|
||||
Part.show(s)
|
||||
</UserDocu>
|
||||
|
|
|
@ -72,14 +72,18 @@ then the behaviour is as if using the keyword 'Distance'.
|
|||
Example:
|
||||
|
||||
import Part
|
||||
c=Part.Circle()
|
||||
c.Radius=5
|
||||
p=c.discretize(Number=50,First=3.14)
|
||||
V=App.Vector
|
||||
|
||||
e1=Part.makeCircle(5,V(0,0,0),V(0,0,1),0,180)
|
||||
e2=Part.makeCircle(5,V(10,0,0),V(0,0,1),180,360)
|
||||
w=Part.Wire([e1,e2])
|
||||
|
||||
p=w.discretize(Number=50)
|
||||
s=Part.Compound([Part.Vertex(i) for i in p])
|
||||
Part.show(s)
|
||||
|
||||
|
||||
p=c.discretize(Angular=0.09,Curvature=0.01,Last=3.14,Minimum=100)
|
||||
p=w.discretize(Angular=0.09,Curvature=0.01,Minimum=100)
|
||||
s=Part.Compound([Part.Vertex(i) for i in p])
|
||||
Part.show(s)
|
||||
</UserDocu>
|
||||
|
|
Loading…
Reference in New Issue
Block a user