|
|
| Posizione nel menu |
|---|
| Parte → Crea proiezione su superficie... |
| Ambiente |
| Part |
| Avvio veloce |
| Nessuno |
| Introdotto nella versione |
| 0.19 |
| Vedere anche |
| Nessuno |
Part Proiezione su superficie viene utilizzato per proiettare una Forma (shape) su una faccia di un altro oggetto; questo può essere usato per proiettare un logo o un oggetto testuale (vedasi
Draft Forma da testo) su diverse superfici per creare effetti interessanti.
Proiezione di un logo su una superficie curva
Note:
(0, 1, 0), l'estrusione verrà creata nella direzione -Y (0, -1, 0). Questa estrusione solida verrà creata solo se il sottoelemento selezionato era una faccia chiusa, premendo il pulsante Aggiungi faccia e scegliendo l'opzione
Note that any extrusions and offsets are along the projection direction. To create these normal to the surface use the Curves SketchOnSurface or Curves MapOnFace tools from the Curves Workbench.
L'algoritmo di proiezione a volte non è in grado di creare una faccia di proiezione valida. Se ciò accade, non sarà nemmeno possibile creare un'estrusione solida.
Se ciò accade:
See also: Property View.
A Part ProjectOnSurface is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Projection
Enumeration): The option are: All, Faces or Edges.Length): Extrusion distance opposite to projection direction.Distance): Offset along projection direction.Direction): Normalized vector in the direction of projection.LinkSub): Link to projection surface.LinkSubList): Projected object(s).An example script, projecting a hexagonal wire onto a cylindrical face, then offsetting and extruding the result, is shown below.
#project a hexagonal face onto the surface of a cylinder
import Part
doc = App.ActiveDocument
poly = doc.addObject("Part::RegularPolygon", "RegularPolygon")
poly.Polygon = 6
poly.Circumradius = 2
poly.Placement = App.Placement(App.Vector(0, -10, 5), App.Rotation(App.Vector(1, 0, 0), 90))
face = doc.addObject("Part::Face", "Face")
face.Sources = (poly, )
cyl = App.ActiveDocument.addObject("Part::Cylinder", "Cylinder")
cyl.Radius = 5
cyl.Height = 10
proj = doc.addObject("Part::ProjectOnSurface", "Projection")
proj.SupportFace = (cyl, u"Face1")
proj.Direction = (0, 1, 0)
proj.Mode = u"All"
proj.Projection = (face, u"Face1")
proj.Height = 1 # opposite to projection direction
proj.Offset = -2 # along projection direction
doc.recompute()