XY extrude

would be great to have tool to extrude spline in XY axis, modifier possibly...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
obaida's picture

The Right Question :

How to change the (normal) of line so the direction of extrude modifier will change also .
OR :
(making the extrude modifier have an option like local X,Y,Z direction)
in this way there is no need to attatch the line to another one with correct normal direction .

barigazy's picture

extrudeXY

This fn do the right job.
Options:
*theShape - spline that you need extrusion
*offset - extrude/offset value
*type - choose three type of extrusion:#center, #in or #out pivot alignement
*banking along the spline (on or off)

fn extrudeSplineXY theShape offset: type: bank: = if isKindOf theShape Shape do
(
	local ext = offset as float
	profile = SplineShape pos:(point3 0 0 0)
	addNewSpline profile
	addKnot profile 1 #corner #line (point3 (ext/2) 0 0)
	addKnot profile 1 #corner #line (point3 (-ext/2) 0 0)
	updateShape profile
	local sweepMod = sweep CustomShape:1 GenerateMappingCoords:on Banking:bank
	case type of (
		(#center): sweepMod.PivotAlignment = 4
		(#in): sweepMod.PivotAlignment = 7
		(#out): sweepMod.PivotAlignment = 1
	)
	sweepMod.shapes[1] = profile
	addModifier theShape sweepMod
	delete profile
)
extrudeSplineXY $ offset:10 type:#in bank:on

bga

kimarotta's picture

This is a way for you to

This is a way for you to develop your tool...

 
fn extrudeLine ey ez =
(
 
sel = $
applyOffset $ ey
select sel
modPanel.addModToSelection (Extrude ()) ui:on
$.modifiers[#Extrude].amount = ez
 
)
 
 
extrudeLine 5 10

Good Luck

kimarotta.com.br
3d Artist  

obaida's picture

sweep modifier can do this

sweep modifier can do this job .

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.