Skip to content

Conversation

@Johny-Leo
Copy link

I am not so familiar with python package production yet, so these are just .py files that you can call on when put in the working directory.

o Boolean operation function package
gdaCAD_boolean package is an external package for Boolean operation on gdsCAD.core.Boundary objects. It returns only one function “boolean()”.

o Text polygon functions package
gdaCAD_text package is an external package for turning texts (utf-8) into polygon objects in forms of gdaCAD.core.Boundary. It returns two functions “text_hrzt()” and “text_vtcl()”.

Changed the pathtype in shapes.Box to get an enclosed path
I am not so familiar with python package production yet, so these are just .py files that you can call on when put in the working directory.
o	Boolean operation function package
gdaCAD_boolean package is an external package for Boolean operation on gdsCAD.core.Boundary objects. It returns only one function “boolean()”. 

o	Text polygon functions package
gdaCAD_text package is an external package for turning texts (utf-8) into polygon objects in forms of gdaCAD.core.Boundary. It returns two functions “text_hrzt()” and “text_vtcl()”.
Returns 2 functions for horizontal texts and vertical texts.
Need to install additional packages: gdspy
Horizontal texts: txt_hrzt(letters, fontproperties, size, layer)
Vertical texts: txt_vtcl(letters, fontproperties, size, vertical_gap, layer)

The functions also support non utf-8 encoded characters by 2 ways: 
1. u'letter'
2. 'letter'.decode('utf-8')
gdaCAD_boolean package is an external package for Boolean operation on gdsCAD.core.Boundary objects. It returns only one function “boolean()”. 
boolean(object1, object2, operation, layer)
object1, object2: gdaCAD Boundary object, works for Elements, Cells, shapes; This function will exclude any “Path” object when turning the input to “Boundary” types;
Operation: choose from ‘and’, ‘or’, ‘not’ and ‘XOR’;
Layer: integer;
This function is constructed based on the boolean function in gdspy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant