Skip to content

New topology for porous organic cage with part of inward vertices #426

Answered by andrewtarzia
suex2016 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @suex2016 ,

Below is a minimum working example that improves the BuildingBlock alignment of your model by using the new AngledVertex instead of the Linear vertex, which was introduced for 2-connected building blocks that were not linear in structure.

Does this provide a useful outcome?

Also, you will see that the code is written outside of the stk source code.

import stk


class FourPlusTen(stk.cage.Cage):
    _vertex_prototypes = (
        stk.cage.NonLinearVertex(0, [1.78064, 1.34416, 0.1529465]),
        stk.cage.NonLinearVertex(1, [1.20514, 1.3974, 1.13758]),
        stk.cage.NonLinearVertex(2, [2.032, 0.63994, 1.35246]),
        stk.cage.NonLinearVertex(3, [2.59602, 1.53754, 0.92842

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@suex2016
Comment options

Comment options

You must be logged in to vote
1 reply
@suex2016
Comment options

Answer selected by suex2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants