Rhinoceros with Pythhon으로 Lattice Hige를 쓰는 프로그램
5143 단어 Pythonrhinoceros
사용법
샘플 프로그램
SampleProgram.py
import rhinoscriptsyntax as rs
import drawlatticehinge as lh
import math
def clear_all():
all_obs = rs.ObjectsByType(0)
rs.DeleteObjects(all_obs)
clear_all()
parameter = [37.5,0.2,0.4,1.5,10]
lattice = lh.LatticeHinge(parameter)
startPoint = (0,0,0)
endPoint = (200,200,0)
lattice.draw_lattice_follow_crosspoint(startPoint,endPoint)
매개 변수
parameter = [37.5,0.2,0.4,1.5,10]
LINE_LENGTH = parameter[0] #37.5#
LINE_WIDTH = parameter[1] #0.2#
OVERLAP_RATE = parameter[2] #0.4#
LINE_INTERVAL = parameter[3] #1.5#
INTERVAL_LIMIT = parameter[4] #10#
cutAngle = (math.radians(90),math.radians(90),math.radians(90),math.radians(90))
※ 주석
LINE_LENGTH = 선 길이
LINE_WIDTH = 선 1개의 너비(레이저 컷의 너비로 0.2mm)
OVERLAP_RATE= 선의 길이 중첩도
LINE_선과 선 사이의 간격
INTERVAL_LIMIT = Lattice의 반복 횟수
실행 결과
startPoint = (0,0)에서 endPoint = (200200,0) 사이의 Lattice Hinge
Reference
이 문제에 관하여(Rhinoceros with Pythhon으로 Lattice Hige를 쓰는 프로그램), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/dr_leonardo1010/items/ad187cde1624346a4b17
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
import rhinoscriptsyntax as rs
import drawlatticehinge as lh
import math
def clear_all():
all_obs = rs.ObjectsByType(0)
rs.DeleteObjects(all_obs)
clear_all()
parameter = [37.5,0.2,0.4,1.5,10]
lattice = lh.LatticeHinge(parameter)
startPoint = (0,0,0)
endPoint = (200,200,0)
lattice.draw_lattice_follow_crosspoint(startPoint,endPoint)
parameter = [37.5,0.2,0.4,1.5,10]
LINE_LENGTH = parameter[0] #37.5#
LINE_WIDTH = parameter[1] #0.2#
OVERLAP_RATE = parameter[2] #0.4#
LINE_INTERVAL = parameter[3] #1.5#
INTERVAL_LIMIT = parameter[4] #10#
cutAngle = (math.radians(90),math.radians(90),math.radians(90),math.radians(90))
※ 주석LINE_LENGTH = 선 길이
LINE_WIDTH = 선 1개의 너비(레이저 컷의 너비로 0.2mm)
OVERLAP_RATE= 선의 길이 중첩도
LINE_선과 선 사이의 간격
INTERVAL_LIMIT = Lattice의 반복 횟수
실행 결과
startPoint = (0,0)에서 endPoint = (200200,0) 사이의 Lattice Hinge
Reference
이 문제에 관하여(Rhinoceros with Pythhon으로 Lattice Hige를 쓰는 프로그램), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/dr_leonardo1010/items/ad187cde1624346a4b17텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)