Page 1 of 1

Extrusion of solid

Posted: 02 Feb 2015, 18:24
by MikeD
Hi,

I have a squareSolid:TsgDXFSolid that I want to extrude.
If I use...

Code: Select all

squareSolid.Point := MakeFPoint(0, 0, 0);
squareSolid.Point1 := MakeFPoint(10, 0, 0);
squareSolid.Point2 := MakeFPoint(10, 10, 0);
squareSolid.Point3 := MakeFPoint(0, 10, 0)

squareSolid.Extrusion := MakeFPoint(0, 0, 10);
...nothing happens. If I use...

Code: Select all

squareSolid.Extrusion := MakeFPoint(0, 10, 10);
...the solid looks like it has been rotated but there is no extrusion.
Am I missing something?

-Mike

Re: Extrusion of solid

Posted: 02 Feb 2015, 20:29
by support
Hello Mike,

The extrusion direction is the normal vector of the plane which contains the entity. The default extrusion direction value is (0, 0, 1). Maybe you confused it with the extrusion of solid 3D models?


Mikhail

Re: Extrusion of solid

Posted: 03 Feb 2015, 09:42
by MikeD
Ah I see.
Yes in that case I mixed it up with the extrusion function of 3D models.

Is there a way to extrude an object / entity or would I have to manually realize it?

-Mike

Re: Extrusion of solid

Posted: 05 Feb 2015, 14:09
by support
Hello Mike,

If you mean the extrusion of some 2D object which results in solid 3D model (for example, a cylinder is a result of extrusion of circle), it is not possible. The Extrusion property in DXF/DWG defines a direction of the normal vector of the plane which contains the entity.


Mikhail