# RULESURF Command [GstarCAD 2012](../../Index.md) → [Commands](../%28Commands%29.md) → [R](%28R%29.md) ## Function Description: > Create a ruled mesh between two curves **Menu:** > Draw\>Modeling\>Mesh\>Ruled Mesh **Command Entry:** > RULESURF Command Prompt: > Create a ruled mesh between two curves > > Select objects to define other end: > > The objects you select define the edges of the ruled mesh. The objects can be points, lines, splines, circles, arcs, or polylines. If one of the boundaries is closed, then the other boundary must also be closed. You can use a point as the other boundary for either an open or a closed curve, but only one of the boundary curves can be a point. The 0,0 vertex is the endpoint of each curve nearest the point you used to select that curve. > > For closed curves, the selection does not matter. If the curve is a circle, the ruled mesh begins at the 0-degree quadrant point, as determined by the current X axis plus the current value of the SANPANG system variable. For closed polylines, the ruled mesh starts at the last vertex and proceeds backward along the segments of the polyline. Creating a ruled mesh between a circle and a closed polyline can be confusing. Substituting a closed semicircular polyline for the circle might be preferable. > > The ruled mesh is constructed as a 2 by N polygon mesh. RULESURF places half the mesh vertices at equal intervals along one defining curve, and the other half at equal intervals along the other curve. The number of intervals is specified by the SURFTAB1 system variable. It is the same for each curve; therefore, the distance between the vertices along the two curves differs if the curves are of different lengths. > > The N direction of the mesh is along the boundary curves. If both boundaries are closed, or if one is closed and the other is a point, the resulting polygon mesh is closed in the N direction and N equals SURFTAB1. If both boundaries are open, N equals SURFTAB1 \+ 1, because division of a curve into n parts requires n \+ 1 tabulations. > > Select objects at the same ends creates a polygon mesh. > > Select objects at opposite ends creates a self-intersecting polygon mesh. ## Other versions with matching text [GstarCAD 2011](../../../2011/Commands/R/RULESURF%20Command.md)