VS:EndMesh

From Vectorworks Developer
Revision as of 18:01, 27 April 2008 by Root (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Procedure EndMesh completes the definition of a mesh object within a VectorWorks document. On calling EndMesh, the mesh is created in the document from the preceding object creation calls.

It is recommended to call ResetOrientation3D after 3D object creations in order to ensure that the new 3D objects will draw properly.

PROCEDURE EndMesh;
def vs.EndMesh():
    return None

Example

VectorScript

BeginMesh;
ClosePoly;
PenSize(1);
PenPat(2);
FillPat(0);
Poly3D(0',0',4'-0",4'-0",0',4'-0",4'-0",-4'-0",4'-0",0',-4'-0",4'-0");
Smooth(0);
Poly3D(0',0',0',4'-0",0',0',4'-0",-4'-0",0',0',-4'-0",0');
Smooth(0);
Poly3D(0',-4'-0",0',0',-4'-0",4'-0",0',0',4'-0",0',0',0');
Poly3D(4'-0",-4'-0",0',4'-0",-4'-0",4'-0",0',-4'-0",4'-0",0',-4'-0",0');
Poly3D(4'-0",0',0',4'-0",0',4'-0",4'-0",-4'-0",4'-0",4'-0",-4'-0",0');
Poly3D(0',0',0',0',0',4'-0",4'-0",0',4'-0",4'-0",0',0');
EndMesh;

Python

vs.BeginMesh()
vs.ClosePoly()
vs.PenSize(1)
vs.PenPat(2)
vs.FillPat(0)
vs.Poly3D(0,0,4*12,4*12,0*12,4*12,4*12,-4*12,4*12,0,-4*12,4*12)
vs.Smooth(0)
vs.Poly3D(0,0,0,4*12,0,0,4*12,-4*12,0,0,-4*12,0)
vs.Smooth(0)
vs.Poly3D(0,-4*12,0,0,-4*12,4*12,0,0,4*12,0,0,0)
vs.Poly3D(4*12,-4*12,0,4*12,-4*12,4*12,0,-4*12,4*12,0,-4*12,0)
vs.Poly3D(4*12,0,0,4*12,0,4*12,4*12,-4*12,4*12,4*12,-4*12,0)
vs.Poly3D(0,0,0,0,0,4*12,4*12,0,4*12,4*12,0,0)
vs.EndMesh()

Version

Availability: from All Versions
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox