Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5870

Offset Problem

$
0
0

@sumuk wrote:

Hi, Greetings! I wanted to offset a curve (which is a 2d curve represented in 3d).

The length of offset is -30 mm

[Expected curves] The offset curve i expect is,

[Reality]The offset i am getting is,

Can you suggest me some Rhinoscriptsyntax’s function that does my job, The code and the cad file i am using is attached below.

Thanks in advance

Please Note: I am using Rhino for Windows and I am using Rhino python (rhinoscriptsyntex) for my code.

import rhinoscriptsyntax as rs

id = rs.ObjectsByName("Sketch.1")
direction = (0,0,0)
distance = -30
rs.OffsetCurve(id, direction, distance)

offset_problem.stp (3.8 KB)

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5870

Trending Articles