Width of the rectangle.
Height of the rectangle.
属性数据
创建一个将围绕模型的矩形.
Example:
//Create a rectangle which will surround a model
var e = new vjgeo.models.Ellipse(17, 10); // draw an ellipse so we have something to surround.
var r = new vjgeo.models.Rectangle(e, 3); // draws a rectangle surrounding the ellipse by 3 units.
vjgeo.exporter.toDWG({ models: { e: e, r: r }});
IModel object.
Optional 与模型的距离.
属性数据
从测量创建矩形.
Example:
//Create a rectangle from a measurement.
var e = new vjgeo.models.Ellipse(17, 10); // draw an ellipse so we have something to measure.
var m = vjgeo.measure.modelExtents(e); // measure the ellipse.
var r = new vjgeo.models.Rectangle(m); // draws a rectangle surrounding the ellipse.
vjgeo.exporter.toDWG({ models: { e: e, r: r }});
IMeasure object.
属性数据
Generated using TypeDoc
从宽度和高度创建矩形.
Example:
//Create a rectangle from width and height var model = new vjgeo.models.Rectangle(50, 100); vjgeo.exporter.toDWG(model);