-I need to fill 3D entity, how can i do? for example cube or square with the vertexes on different plans
-Can I fill the thickness?
Moderators: admin, SDS, support
if (this.cadImage == null)
{
this.cadImage = new CADImage();
this.cadImage.InitialNewImage();
}
this.cadImage.UseDoubleBuffering = false;
CADHatch hatch = new CADHatch();
CAD2DBoundaryList v2DBList = new CAD2DBoundaryList();
hatch.BoundaryData.Add(v2DBList);
HatchPatternData vHPData;
v2DBList.BoundaryType = 1;
CAD2DArc vCircle = new CAD2DArc();
vCircle.CenterPoint = new CAD2DPoint(10, 10);
vCircle.Radius = 20;
vCircle.StartParam = 0;
vCircle.EndParam = 360;
vCircle.CounterClockWise = true;
v2DBList.Add(vCircle);
((CADHatch)hatch).HatchName = "USER";
vHPData = new HatchPatternData();
vHPData.baseP = new DPoint(0, 0, 0);
vHPData.offset = new DPoint(1, 1, 0);
vHPData.lineAngle = 10.0f;
vHPData.isDash = false;
vHPData.lines = null;
vHPData.dashNum = 1;
((CADHatch)hatch).HatchPatternData.Add(vHPData);
hatch.Color = Color.Red;
hatch.Extrusion = new DPoint(10, 20, 15);
hatch.Loaded(this.cadImage.Converter);
this.AddEnt(hatch);
this.DoResize();
this.cadPictBox.Invalidate();
// this is saving method lightly modified for adding to creation method
if (this.cadImage == null)
return;
if (this.dlgSaveDXF.ShowDialog() != DialogResult.OK)
return;
if (cadImage is CADRasterImage)
{
return;
}
this.cadImage.GetExtents();
this.DoResize();
CADImport.Export.DirectCADtoDXF.CADtoDXF vExp = new CADImport.Export.DirectCADtoDXF.CADtoDXF(cadImage);
vExp.SaveToFile(this.dlgSaveDXF.FileName);
Return to CADImport.NET + DXFExport.NET
Users browsing this forum: No registered users and 1 guest